Type Selector
Element type selector matches elements by node name. This selector explicitly specifies the name of an element in the document tree.
An element type selector selects all elements of that type in a document. Consider the span
element below
<span>This is a span element.</span>
span
elements (as above) within a document can all be selected and given CSS property/value pairs. An example below shows a CSS rule selecting span
elements and the property color
set to red
in the declaration block
span {color: red;}
The above rule matches all span
elements in the document and will be coloured red.