Introduction to HTML5 syntax changes

Source: Internet
Author: User

Comments: HTML5 syntax changes mainly refer to tags that are no longer case sensitive, elements that can omit end tags, attributes that can omit attribute values, and so on. For more information, see, I hope to help you understand html5. 1. labels are no longer case sensitive.

The Code is as follows:
<P> Hello, World! </P>

2. The end tag can be omitted for an element.

(1) Empty element syntax elements: area, base, br, col, command, embed, hr, img, input, keygen, link, mata, param, source, wbr
(2) elements of the end tag can be omitted: colgroup, dt, dd, li, optgroup, p, rt, rp, thread, tbody, tfoot, tr, td, th
(3) You can omit all tag elements: html, head, body, and tbody.

3. attributes that allow omitting attribute values
4. attribute values are not enclosed in quotation marks.

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.