Recommended HTML5 Writing format

Source: Internet
Author: User

1. Elements and attributes all lowercase

2. Attribute values are enclosed in quotation marks as far as possible

3. All pairs of labels must be closed

4. Empty elements do not need to end

5. The

6. No need to write all properties with attribute names equal to property values

7. It is recommended to introduce a reset style sheet in each HTML file normalize.css

8. Add cross-browser support for HTML5 semantic elements http://html5shiv.googlecode.com/svn/trunk/html5.js

9. Add support for CSS3 modifiers to older IE http://css3pie.com/

1  <!DOCTYPE HTML>2 <HTMLLang= "zh">3       <Head>4           <MetaCharSet= "Utf-8">5           <Linkrel= "stylesheet"href= "Css/normalize.css">6           <!--[If Lt IE 9]7 <scriptsrc= "Http://html5shiv.googlecode.com/svn/trunk/html5.js" ></script>8 <! [EndIf] -9       </Head>Ten       <Body> One          <span>Name:</span><inputtype= "text"Required> A      </Body> -  </HTML>

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.