Prev Demo
jQuery
>
Element Selector
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> </head> <body> <h1>Element selector.</h1> <div> <header>This is Page Heading.</header> <p>This is Paragraph1.</p> <p>This is Paragraph2.</p> <footer>This is Page Footer.</footer> </div> <script> $("p").css("border", "5px solid green"); </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output