jQuery Selectors
<!DOCTYPE html> <html> <head> <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script> </head> <body> <p>Sample paragraph</p> <p id="intro">Introduction paragraph</p> <p class="note">A note paragraph</p> <script> // Select by element name (every <p> on the page) $("p").hide(); // Select by id (the one element with id="intro") $("#intro").hide(); // Select by class (every element with class="note") $(".note").hide(); </script> </body> </html>