Der Typselektor spricht bestimmte HTML-Elemente an.
1 2 3 | p { font-weight: bold; } |
Alle <p> Elemente eines Dokumentes haben eine dicke Schrift.
1 2 3 | div p { text-decoration: underline; } |
Alle <p> Elemente innerhalb eines <div>’s sind Unterstrichen
Der Typselektor spricht bestimmte HTML-Elemente an.
1 2 3 | p { font-weight: bold; } |
Alle <p> Elemente eines Dokumentes haben eine dicke Schrift.
1 2 3 | div p { text-decoration: underline; } |
Alle <p> Elemente innerhalb eines <div>’s sind Unterstrichen