Front-end CSS

Source: Internet
Author: User

There are three types of CSS used in HTML:

CSS is mainly used to beautify the format of the Web page, and is responsible for most of the style.

Key Benefits:

1, separating the data and the display,

2, reduce network traffic,

3, so that the entire site visual effects have been

4, improve the development efficiency

Three ways to use the style:

1, inline style

The style is written directly between lines of code, and the method writes the style with the highest precedence

<p style = "Color:green" > Your sister ~</p> this is written directly in the line, but generally rarely used, with priority issues

Difficult to modify in the case of large numbers of code ~

2, Inner style

<style type = "Text/css" > #写css文档    spen{    color:yellow}  #多深都能找到 </style>

3, external style

3,1-Linked

Link rel = "stylesheet" href = "css file" This is a fixed mode is a linked style of the external

3,2 Import Formula

Style type= text/css    @inport url (css file path)  /style    times as an import method for an external style

Front-end CSS

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.