HTML style Sheet

Source: Internet
Author: User
Inline style sheet

Placed in the label, control precision, but reusability is poor, redundant.

Inline style sheet

Put it in the middle of External style sheet

Create a new CSS file to place the style sheet. If you want to call a style sheet in an HTML file, you need to right-click the--CSS style in the HTML file-attach the style sheet. The link connection method is generally used.

Selector Selector

1. Tag Selector. Use the tag name to make the selector.

2.class Selector. <p class= "P1" ></p>

3.ID Selector. Start with #

4. Composite selector. Use "," to separate the expression of the side, separated by a space for the descendants, the label inside the label; filter ".", P.sp represents the label of the class= "SP" in the label p.

HTML style Sheet

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.