Home >Web Front-end >H5 Tutorial >HTML5—Usage and compatibility of new semantic elements
1. New semantic elements:
HTML5 provides new semantic elements to clarify different parts of a Web page.
describes the header area of the document, is used to define the introduction display area of the content
The part that defines the navigation link.
section usually contains a set of content and its title.
Define the title of the 24203f2f45e6606542ba09fd2181843a element.
A footer usually contains the author and copyright information of the document , linked terms of use, contact information, etc..
In a web page, the positions of these new semantic tag elements are as shown below:2. Browser compatibility issues with new elements:
In order for these blocks and elements to take effect in all versions of browsers, you need to add them to the style Set the following attributes in the table file (the following style code allows older browsers to support the block-level elements introduced in this chapter):
header, section, footer, aside, nav, article, figure { display: block; }
IE8 and earlier IE versions cannot render CSS effects in these elements, so you cannot use 1aa9e5d373740b65a0cc8f0a02150c53, 2f8332c8dcfd5c7dec030a070bf652c3, c37f8231a37e88427e62669260f0074d, 15221ee8cba27fc1d7a26c47a001eb9b, c787b9a589a3ece771e842a6176cf8e9 , 23c3de37f2f9ebcb477c4a90aac6fffd, 24203f2f45e6606542ba09fd2181843a, or other HTML5 elements. You can use
to solve this problem:
##<!--[if lt IE 9]> <script src="html5shiv.js"></script> <![endif]-->
The above is the use and compatibility of HTML5-new semantic elements. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!