Name

Typ-Selektor

Muster:

element1

Beschreibung:

Dieser Selektor entspricht dem Namen eines Elements in der Sprache des Dokuments. Er passt auf jede Instanz des Elements. (CSS1 bezeichnete diesen Typ als »Element-Selektor«.)

Beispiele:

body {background: #FFF;}
p {font-size: 1em;}

Get CSS kurz & gut, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.