How to compile CSS

Source: Internet
Author: User
One is to put the CSS document in the  
<Style type = "text/css"> ...... </Style>
The "type = 'text/css '" in <style> means that the code in <style> defines the style form.
 
Another method is to write the CSS style sheet in the HTML row, such as the following code:
 
<P style = "font-size: 14pt; color: blue"> blue 14 text </p>
The Style is written in any row in html in the format of <Style = "">, which is convenient and flexible.
Another method is to save the edited CSS document as a ". CSS" file and define it in <Head> <link rel = stylesheet href?“style.css "> ...... </Head>
We can see that a <Link> is applied here. "rel = stylesheet" indicates that the connected element is a style sheet document. In general, you do not need to change it here.
 
The subsequent href='style.css 'refers to the file address to be connected. You only need to write the detailed path name of the edited ". CSS" file into it. This method is suitable for defining multiple documents at the same time. It allows multiple documents to use the same style at the same time, thus reducing a large amount of redundant code.
This section describes how to compile CSS and how to combine the CSS document with HTML. You can choose which method to combine CSS with the structure and length of your HTML code.
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.