CSS elemento Selector
- Página anterior elemento
- Próxima página #id
- Voltar à página anterior Manual de Seletor CSS
Definition and usage
CSS elemento
Selector used to select all elements with a specified element name.
Used in @namespace
At this time, the 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 style for all <h1> elements, and select and set the style for all <p> elements:
h1 { border: 2px solid green; background-color: beige; } p { background-color: yellow; }
CSS syntax
elemento { css declarations; }
CSS syntax with namespace
namespace|elemento { css declarations; }
Technical details
Version: | CSS1 |
---|
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Suporte | Suporte | Suporte | Suporte | Suporte |
- Página anterior elemento
- Próxima página #id
- Voltar à página anterior Manual de Seletor CSS