CSS Syntax order

Source: Internet
Author: User

First, the basic order

1. Style is included in head.

2. Style has a beginning and end.

  <style text= "Text/css" >  </style>   

Second, CSS notation

1. The style effect should be written in {} to realize the CSS function.

2, in the text with "Li" reference, then use "Li" to achieve the control of the text.

3, the reference style, #p need "class" reference, ". P" needs "id" reference. You can also directly write HTML text tags to achieve.

  <style text= "Text/css" > Li{color:black; font-size:20px; Background-color: #F00; list-style-type:none; font-family: Microsoft ya black  p{color:blue; Background-image:url (.. /%e8%a1%a8%e6%a0%bc/imges.jpg);} span{background: #0F0;}  </style>  Silicon Valley trends </ Span>: How to change everything with Uber and Airbnb </li>  <p >360 security defender Baidu Wallpaper lu Master Thunderbolt storm av </p>  <p > Computer Recycle Bin Activation Tool Youdao Dictionary broadband connection security browser </p>  <p> Chinese network video Youku Iqiyi art Autohome </p> </div>

CSS Syntax order

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.