<p class="foo">Select the target you want to highlight by either clicking the button or hovering over it:</p>
<span>click-buttons:</span><p>You can target HTML tags using </span>CSS</span> querySelectorAll
. This returns an array.</p>
<p>You can target HTML tags using getElementsByTagName
. This returns an array.</p>
<p class="foo">You can target different HTML tags based on the class they've got using getElementsByClassName
. This returns an array.</p>
<p id="special">You can also target a specific ID (remember these are unique) using getElementById
. This returns a single item.</p>