CSS element Selector
- Vorherige Seite element
- Nächste Seite #id
- Nach oben CSS-Selektor-Referenzhandbuch
Definition and usage
CSS element
The selector is used to select all elements with the specified element name.
When using @namespace
When, this selector can be namespace qualified.
- ns|p - Select <p> elements in the namespace ns
- *|p - Select all <p> elements
- |p - Select all <p> elements that have not declared any namespace
Example
Select and set the styles for all <h1> elements, and at the same time select and set the styles for all <p> elements:
h1 { border: 2px solid green; background-color: beige; } p { background-color: yellow; }
CSS syntax
element { css declarations; }
Syntax of CSS with namespace
namespace|element { css declarations; }
Technical details
Version: | CSS1 |
---|
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Unterstützung | Unterstützung | Unterstützung | Unterstützung | Unterstützung |
- Vorherige Seite element
- Nächste Seite #id
- Nach oben CSS-Selektor-Referenzhandbuch