Name

Selektor für exakte Attributwerte

Muster:

element1[attribut="wert"]

Beschreibung:

Dieser Selektor ermöglicht es Autoren, ein beliebiges Element anhand des genauen und vollständigen Attributwerts auszuwählen.

Beispiele:

a[rel="Start"] {font-weight: bold;}
p[class="dringend"] {color: red;}

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.