All markup in the HTML language is controlled by a different CSS selector. users only need to control different HTML tags through selectors, and give various style declarations to achieve a variety of effects.
1. Marker Selector
An HTML page has a number of different markup components, and the CSS tag Selector is the one that declares which tags take what CSS style . For example, the P selector is the style used to declare all <p> tags in the page.
The CSS code declares all the
<style>h1 { color:red; font-size:25px;} </style>
Each CSS selector contains the selector itself, attributes, and values, where the properties and values can be set multiple, enabling the same markup to be declared in a variety of style styles.
The CSS language has a relatively strict requirement for all properties and values, and you cannot make the CSS statement effective if the declared property is not in the CSS specification, or if the value of a property does not conform to the requirements of the property. Normally you can use the CSS Editor's syntax hints to avoid it, but at some point you need to consult the CSS manual or visit the website of the Web site (http://www.w3.org/) directly to see the detailed specifications of the CSS.
2. Category Selector
The name of the category selector can be customized by the user, and the properties and values are the same as tag selectors and must conform to the CSS specification.
When there are 3 <p> markers in the page, and you want them to be different colors, you can do this by setting up a separate class selector.
One{Color:Red;/*Red*/font-size:18px;/*Text Size*/}. the{Color:Green;font-size:20px;}. Three{Color:Cyan;font-size:22px;}--></style>
Fourth Chapter CSS Selector