External CSS style, written in a separate file

Source: Internet
Author: User

An external CSS style (also known as an inline) is to write the CSS code in a separate external file, with the CSS style file " .css " as the extension, within

<link href="base.css" rel="stylesheet" type="text/css" />


1. CSS style file names are named with meaningful English letters, such as MAIN.CSS.

2, rel= "stylesheet" type= "text/css" is fixed notation cannot be modified.

3, <link> label location is generally written in the



span{   color:red;   font-size:20px;}


<!DOCTYPE HTML><HTML><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8"><title>Inline CSS Styles</title><Linkhref= "Style.css"rel= "stylesheet"type= "Text/css" /></Head><Body>    <P>XX NET,<span>Super Cool Internet</span>, it technology free learning platform, innovative network one-stop learning, practical experience;<span>Prompt and attentive service</span>, Content Professional,<span>Fun and easy to learn</span>。 Focus on the service of Internet engineers quickly become a master of technology!</P></Body></HTML>


External CSS style, written in a separate file

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.