The selector and classification of CSS style sheets

Source: Internet
Author: User
Tags tag name

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.