Type Selector
This is a type selector. It targets all elements of a given type, like all <p>
tags.
This is a type selector. It targets all elements of a given type, like all <p>
tags.
This is a class selector. It targets elements with a specific class, like .example
.
This is an ID selector. It targets elements with a specific ID, like #example
.
This is an attribute selector. It targets elements with a specific attribute, like
[type="text"]
.
This is a child selector. It targets elements that are direct children of a specified element, like
ul > li
.