What is the introduction of HTML5 syntax changes?
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.