What element(s) do the following selectors match to?

1) .nav {…} 2) nav {…} 3) #nav {…}

  • 1. An element with an ID of “nav”
    2. A nav element
    3. An element with a class of “nav”
  • They all target the same nav element.
  • 1. An element with an class of “nav”
    2. A nav element
    3. An element with a id of “nav”
  • 1. An element with an class of “nav”
    2. A nav element
    3. An div with a id of “nav”
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment

Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend