</head> <body> <h1>Where do you want to go?</h1> <p>Plan your next challenge.</p> </body> </html> How can we search through our HTML? • We need to understand how our browser organizes the HTML it receives.
you want to go?</h1> <p>Plan your next challenge.</p> </body> </html> Using the JQuery function to find nodes JQuery(”h1”); JQuery(”p”); $(”h1”); $(”p”); JQuery selectors short & sweet syntax
<h1> element? HTML document <!DOCTYPE html> <html> <head> <title>Javascript App</title> </head> <body> <h1>Where do you want to go?</h1> <p>Plan your next challenge.</p> </body> </html>
next adventure.</p> <ul id=”countries”> <li class=”promo”>Spain</li> <li>UK</li> <li>USA</li> </ul> How do we find the <li> elements? $(”countries li”); parent descendant
even elements. <h1>Where do you want to go?</h1> <p>Plan your next adventure.</p> <ul id="countries"> <li>Spain</li> <li>UK</li> <li>USA</li> <li>Germany</li> </ul>