Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the introduction of HTML5 syntax changes?

Shulou Source: shulou.com Published: 2022-06-03 07:46:34 11月15日 Update

Today, I will talk to you about the introduction of HTML5 grammatical changes, which may not be well understood by many people. in order to make you understand better, the editor has summarized the following content for you. I hope you can get something from this article.

1. Tags are no longer case-sensitive

The code is as follows:

Hello,World!

2. Elements can omit the closing tag

(1) elements of empty element syntax: area, base, br, col, command, embed, hr, img, input, keygen, link, mata, param, source, wbr

(2) elements of the closing tag can be omitted: colgroup, dt, dd, li, optgroup, p, rt, rp, thread, tbody, tfoot, tr, td, th

(3) all the elements of the tag can be omitted: html, head, body, tbody

3. Attributes that allow the omission of attribute values

4. Allow attribute values not to use quotation marks

After reading the above, do you have any further understanding of the introduction of HTML5 grammar changes? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Tags: Elements tags syntax content attributes changes code size quotation marks more knowledge articles industry information information channels channels one support related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Linux MariaDB OPPO Reno vpn