[Previous] [Contents] [Next]

ID Attributes


An ID selector can be used to pick out a specific element according to the value of its ID attribute. An ID selector is the ID attribute string value preceded by a hash mark (#). The hash mark doesn't appear in the value of ID attribute itself.

#i5 {color: brown;}
     <P ID="i">This is text with an ID of 'i5'.</P>

[Previous] [Contents] [Next]