Example of a CSS style written in a detailed format

Source: Internet
Author: User
There are three types of CSS written in the format

Inline style: meaning to write styles within a row

For example, say <p style= "color:red" > Write my colors in inline styles </p>

Applies only to <body> (font color and background color) and <body> labels, but not to <body> for example: Head,title, etc.

inline style : Use style to unload all styles inside the style.

For example, say:


Outreach Style : The pop point is the external style, and the link style is used to connect to the external. css file.

For example, say:


Yes, it's spicy. Simple, just write CSS style to another. css text and then just need link to display the style in the page, but be sure to note the file path!!! The wrong path is not allowed to drip.

The personal recommendation uses the external style, has done the CSS and the layout code separation, may make the code to be more editable to load faster.

The above article refers to the CSS style written in detail is a small part of the whole content to share to everyone, I hope to give you a reference, but also hope that we support topic.alibabacloud.com.

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.