This website may use cookies. More info. That's Fine x
Welcome Login

ID selectors


Css

ID selectors are similar to class selectors.

They can be used to select any html element that has an ID attribute, regardless of their position in the document tree.

An ID can only be applied once per page, while classes can be used as many times on a page as needed.

Eg:

div#navigation { width: 12em; color: #333; }

 


Created on: Thursday, March 10, 2011 by Andrew Sin