Home > Web Front-end > H5 Tutorial > body text

HTML5—Usage and compatibility of new semantic elements

黄舟
Release: 2017-02-27 15:55:33
Original
1705 people have browsed it

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

  • ##
    :
  • Define the section (section, section) in the document. For example, a section, header, footer, or other section in a document, a

    section usually contains a set of content and its title.

  • :
  • Define independent content.


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; 
}
Copy after login



IE8 and earlier IE versions cannot render CSS effects in these elements, so you cannot use

,
,
,
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!