Some notes in the HTML5 CSS3

Source: Internet
Author: User

<!DOCTYPE HTML><HTML><Head>    <MetaCharSet= "Utf-8" >    <title>CSS Selector</title>    <styletype= "Text/css">        /*HTML document css:root{border:solid 1px red;        }; */        /*Word selector with > No need to take*/        /*ul > li{color:red; }*/        /*ul > li:first-child{color:red;        } ul > li:last-child{color:red; }                */        /*enable and disallow input CSS for the input box*/        /*input:enabled{border:1px solid red;        } input:disabled{border:1px solid blue; }*/        /*Verify success shows blue, verification does not successfully display green*/        /*input:valid{border:1px solid blue;        } input:invalid{border:1px solid green; }*/        /*mandatory form and no filling form*/        /*input:required{} input:optional{}*/        /*1. Display 2. Display after the visit 3. Mouse Movement 4. Click on the display after the fixed*/        /*a:link{} a:visited{} a:hover{} a:active{}*/        /*Google is not compatible when getting cursors*/        /*input:focus{border:1px solid red; }*/        /*A element of a tag Href!=baidu*/        /*A:not ([href*= "Baidu"]) {color:red; }*/        /*em is relative to the font size hook, very flexible*/P{margin:0;padding:0;background:Gray;font-size:20px;width:50%;        }    </style></Head><Body>    <ul>        <Li>1th Sub-element of UL</Li>        <Li>2nd sub-element of UL</Li>        <Li>3rd sub-element of UL</Li>        <Li>4th Sub-element of UL</Li>    </ul>    <inputtype= "text"  />    <inputtype= "Email" />    <BR/>    <ahref= "" >Baidu</a>    <ahref= "" >Google</a>    <ahref= "" >Haosou</a>    <P> EM Unit explanation EM Unit explanation EM Unit explanation EM Unit explanation EM Unit explanation</P></Body></HTML>

Some notes in the HTML5 CSS3

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: 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.