ID
Matches the class property of the specified element.
The ID property allows authors to uniquely identify an element instance in the document tree. ID selectors match an element instance based on its identifier. The ID property value must immediately follow the number sign (#).
Note: |
|---|
Though some older browsers will allow multiple elements to share a single ID value, best-practices dictate that only one instance of a specific ID exist on a page. An element can have only one ID property. |
In the event that a style declaration conflicts with another declaration, the rule with a higher level of specificity is used. (See Understanding selectors.) If a class selector and an ID selector are in conflict, the ID selector is chosen.
This selector is defined in Cascading Style Sheets (CSS), Level 1 (CSS1).
Note: