CSS #id Selector
- Previous Page element
- Next Page *
- Go to the Previous Level CSS Selector Reference Manual
Definition and Usage
CSS #id
Selector is used to select elements with a specified id.
Example
Set the style of the element with id="firstname":
#firstname { background-color: yellow; {}
CSS Syntax
#id { CSS Declarations; {}
Technical Details
Version: | CSS1 |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Support | Support | Support | Support | Support |
- Previous Page element
- Next Page *
- Go to the Previous Level CSS Selector Reference Manual