A brief overview of HTML5 grammar and rules

Source: Internet
Author: User
Tags empty

1, HTML5 is not case sensitive,

This is my

2. HTML5 omit the slash that closes the empty element; The empty element is an element that does not nest content, for example:

3, the property of the syntax rules, property values as long as not contain (> = or spaces) and other restricted characters, you can not add quotes.

For example:

Only attributes with no name and no attribute value are available.

PS: If you can do the following, basically can be regarded as a good HTML5 style

1, although,, dispensable, does not use only represents a style just. However, the use of the words will help the content of the page and other information to separate, so should include,, these three elements.

2, the label all lowercase.

3, add quotes for attribute values, the reason is to prevent some low-level errors, sometimes inadvertently a mistake, an invalid character will destroy the entire page.

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