How to use the css tag selector
This article mainly shows you the "css tag selector how to use", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "css tag selector how to use" this article.
Css tag selector
Concept:
The tag selector (element selector) refers to using the HTML tag signature as the selector. Specify a uniform CSS style for a certain type of tag on the page, classified by tag name.
Syntax:
Signature {attribute 1: attribute value 1; attribute 2: attribute value 2; attribute 3: attribute value 3.}
Function:
The tag selector can select all types of tags, such as all div tags and all span tags.
Advantages:
It can quickly unify the style for the same type of tags on the page.
Disadvantages:
Differentiated styles cannot be designed.
Sample code: div {color: red;} span {color: green Nalan Xingde: the wine in the new cold knocks on the window rain, the residual fragrance and autumn mood. Just don't hurt the spirit, the blue shirt is wet. When you are bored, you will sleep alone, and your time will pass. I remember the peach blossom and willow silk when I was in Biyi. I am a melancholy guest in the world. I know why you are in tears. I remember all the contents of this article "how to use the css tag Selector" in my life. thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!