In this tutorial you will learn about the CSS Tag Selector and its application with practical example.
Tag or Type selector enable us to define CSS for a HTML Element(tag), and all the occurrence of that HTML tags will be assigned defined CSS by default.
Table Of Contents−
Syntax:
1 |
[Tag Selector] { property:value; ...} |
Example:
1 2 3 |
b { color:red; } |
Means all the occurrence of <b> </b> element will have color = red.