HTML5 is a powerful force after HTML4. It encapsulates many APIs. We no longer need to write several lines of javascript to implement a simple function, but a single tag can solve the problem. It has very powerful semantic tags. It makes the layout concise and easy to understand and easy to maintain. The most important thing is that its compatibility is very powerful. It seems to be born to solve the compatibility problem. Although the syntax is different, it is also compatible with HTML4 writing method. Isn’t it very powerful?
1. New structural elements
1) section
Represents a content block in the page, such as a chapter, header, footer or other part of the page, which can replace the previous div
2) article
Represents a piece of independent content on the page that is not related to the context, such as an article in a blog.
3) aside
Represents auxiliary information related to the content of the article element in addition to the content of the article element.
4) header
5)footer
6)hgroup
Used to combine the titles of an entire page or a content block within a page
7) figure
Represents an independent piece of stream content, generally representing an independent unit in the main stream content of the document, using
figcaptionAdds a title to the figure element
8)nav
All resources on this website are contributed and published by netizens, or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this website are for learning and reference only. Please do not use them for commercial purposes, otherwise you will be responsible for all consequences incurred! If there is any infringement, please contact us to delete and remove it. Contact information: admin@php.cn