CSS #id Selector
- Forrige side element
- Næste side *
- Gå tilbage til forrige niveau CSS selector referencehåndbog
Definition and usage
CSS #id
Selector is used to select elements with the specified id.
Example
Select and 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 |
---|---|---|---|---|
Støtte | Støtte | Støtte | Støtte | Støtte |
- Forrige side element
- Næste side *
- Gå tilbage til forrige niveau CSS selector referencehåndbog