CSS element.class Selector
Voorbeeld
Kies en styl elke <p>-element met die klas "intro":
p.intro
{
background-color: yellow;
}
Definisie en gebruik
Die element.class selector word gebruik om die gespesifiseerde element met die die gespesifiseerde klas te kies.
Weergawe: | CSS1 |
---|
Blaaierondersteuning
Selector | |||||
---|---|---|---|---|---|
element.class | Yes | Yes | Yes | Yes | Yes |
CSS-sintaksis
element.class {
css declarations;
}