Click a selector to see which element(s) gets selected int the Result:
$(".intro, #Lastname")
$("div > p")
$("div p")
$("h1, p")
$("ul + h3")
$("ul ~ table")
$("ul li:eq(0)")
$("ul li:gt(0)")
$("ul li:lt(2)")

<h1>Welcome to My Homepage</h1>

<div class="intro">

<p>My name is Donald <span id="Lastname">Duck</span> </p>

<p id="my-Address"> I live in Duckburg </p>

<p>I have many friends:</p>


<ul id="Listfriends>
  • <li>Goofy</li>
  • <li>Mickey</li>
  • <li>Daisy</li>
  • <li>Pluto</li>

<p> I really like Daisy!! </p>

<p lang="it" title="Hello beautiful"> Ciao bella</p>

    <h3>We are all animals!</h3>

    <p> <b>My latest discoveries has led me to believe that we are all animals:</b> </p>

      Name Type of Animal
      Mickey Mouse
      Goofey Dog
      Daisy Duck
      Pluto Dog