Types of style sheets and selectors used

Source: Internet
Author: User

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">{Color: #93F}/* Purple */div.c3{Color: #F00}/* Red */div span{Color: #0F0}/* Green */DIV.C2{Color: #FF6}/* Yellow */</style> Inline Advantages Control the exact disadvantage is that the code resets poorly; page code chaos precedence </div> <div class= "C3" > embedded Advantage is that code reusability is a good disadvantage is that control does not have an inline precision priority next </div> <div class= "C3" > external Embedding Advantage is the best drawback of code reusability is to control the least accurate priority and embed the same </div> <div id= "B1" > Precision control </div> <span > tag Selector </span> <span> tag Selector </span> <span> tag Selector </span> <span> Tag Selector </span > <span> Tag Selector </span> <div> <span> This is span</span> <span> this is span</span> <span> This is span</span> <span> this is span</span> <span> this is span</span> </div> < Div class= "C2" > inline Advantages Control the exact disadvantage is that the code reset is poor; page code chaos precedence highest </div> <div class= "C2" > embedded Advantage is that code reusability is a good disadvantage is that the control does not have an inline precision First Class second </div> <div class= "C2" > external Embedding Advantage is the best drawback of code reusability is to control the least accurate priority and inline the same </div> <!--* Select < Tag selection < Class selector <id Select --Selector priority </body>      

Types of style sheets and selectors used

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.