HTML5 adds,and other tags todocument semantics, such as replacing theptag in the document. For specific scenarios in which to use it, please refer to the official documentation of H5 Well...
First of all, I personally think that good HTML semantics is actually the icing on the cake. It’s actually not difficult to do a good job of semantics. The key is to figure out what exactlyis put in thetag. Taking the several new tags added in HTML5 as an example, you can easily know that thetag must contain the main text content, andmust be the sidebar. Of course, some divergent thinking is required in actual use: for example, not only large articles can use, the questions and answers on this page are actually usage scenarios with goodtags, and other examples are flexible The same goes for the
HTML5 adds
,and other tags todocument semantics, such as replacing the
p
tag in the document. For specific scenarios in which to use it, please refer to the official documentation of H5 Well...Recommended to come here to learn
http://www.runoob.com/html/html5-new-element.html
First of all, I personally think that good HTML semantics is actually the icing on the cake.
It’s actually not difficult to do a good job of semantics. The key is to figure out what exactlyis put in thetag. Taking the several new tags added in HTML5 as an example, you can easily know that the
tag must contain the main text content, and
must be the sidebar. Of course, some divergent thinking is required in actual use: for example, not only large articles can use
, the questions and answers on this page are actually usage scenarios with good
tags, and other examples are flexible The same goes for the
tag.