CSS #id Selector
Complete CSS Selector Reference Manual
Example
Add a specified style to the element with id="firstname":
#firstname
{
background-color:yellow;
}
Try it »
Definition and Usage
#idThe selector specifies the style of an element with an ID.
Browser support





All major browsers support #id selector.