Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery Select Element by Name</title> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script> $(document).ready(function(){ // Highlight paragraph elements $("p").css("background", "yellow"); }); </script> </head> <body> <h1>This is heading</h1> <p>This is a paragraph.</p> <p>This is another paragraph.</p> <div>This is another block of text.</div> </body> </html>