Cascading style sheets and CSS3 basics

Source: Internet
Author: User

When defining a style, if the BODY element is not defined first, the other elements in the body are not displayed, such as H, p, and other Tags:

<!doctype html><!--told the document is HTML5 document--
<meta charset= "Utf-8" >
<link href= "Style.css" rel= "stylesheet"/>
<title> Untitled Document </title>

<body>
<P>HTML5 documents are composed of different chunks. </p>
New block elements in the <H2>HTML5 <ul>
<li>section</li>
<li>article</li>
<li>nav</li>
<li>aside</li>
</ul>
</body>

C # Document
@charset "Utf-8";
/*body{
font-size:75%;16px*0.75=12px
line-height:1.5;12px*1.5=18px
}*/
h1,h2{
Color: #3fb8eb;
}

C # Document
@charset "Utf-8";
body{
font-size:75%;/*16px*0.75=12px*/
line-height:1.5;/*12px*1.5=18px*/
}
h1,h2{
Color: #3fb8eb;
}

Cascading style sheets and CSS3 basics

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.