This type selector will select every fitting element which conforms the element type. This selector is case insensitive in (X)HTML but case sensitive in XML.
# Syntax
Copy
E {
/* declarations */
}
# Example
Copy
div {
color: red;
}
In this example will be all <div>
's have a red color while all other elements will stay the same.
# Browser support
Platform
Chrome
Firefox
Safari
Edge
Internet Explorer
Opera
Desktop
Yes (1.0)
Yes (1.0)
Yes (1.0)
Yes (12.0)
Yes (3.0)
Yes (2.0)
Mobile
Yes (1.0)
Yes (1.0)
Yes (1.0)
Yes (12.0)
Yes (3.0)
Yes (2.0)
Please wait a moment, the comments start loading now...