The role of CSS style sheets:
Mainly used for structure, style and behavior, the main function of CSS is to beautify the Web page of a language, its characteristics:
1. Structure and style separation mode, convenient for later maintenance and revision;
2. The style defines the level of accuracy to the pixel;
Structure of the CSS style sheet:
CSS, called cascading style sheets, is used to set various styles of CSS styles for a Web page, consisting of 3 parts, selectors, attributes, and values.
Categories of CSS:
Main points: inline, inline, and outreach.
Inline: Written in the label, control accuracy, code repeatability is poor, the highest priority.
Embedded: Embedded in the page head, control is not inline precision, code repeatability is good.
Outreach: Individual style files, introduced: <link href= "Test.css" rel= "stylesheet" type= "Text/cs
Control is not inline-accurate, and code reusability is best.
CSS selector:
1. Tags: select elements based on tag name
2.class:. (dot) Filter by class name
4.[Property]: Select an element with a property
5. Compound: comma-side, space descendants, point filter
The selector and classification of CSS style sheets