View Single Post
  #3 (permalink)  
Old January 11th, 2012, 11:13 AM
vbboyd vbboyd is offline
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default

Quote:
Originally Posted by Imar View Post
The last two are similar, because they both refer to an element *within* an element with an id of hero. They are different because they refer to different type of elements. In the first case, it refers to a paragraph (p); in the second case to a (non-existent) element called nav.

Hope this helps,

Imar

Yes the documentation that I am reading, if I am not mistaken I believe, the #hero and # hero p id selectors are being referred to as style rules. Is that the same as id selectors?

Thank you
Reply With Quote