WeCodeAcademy
❮ [attribute][attribute^=value] ❯

[attribute=value]

Selects elements with an exact attribute value.

Syntax

[type="text"] { ... }

Example

Examplehtml
Open in editor »

← All of CSS Selectors