WeCodeAcademy
❮ element ~ element[attribute=value] ❯

[attribute]

Selects elements that have an attribute.

Syntax

[title] { ... }

Example

Examplehtml
Open in editor »

← All of CSS Selectors