Home > Web Front-end > HTML Tutorial > HTML5 semantic elements and which older browsers does it support?

HTML5 semantic elements and which older browsers does it support?

WBOY
Release: 2023-09-20 13:17:02
forward
658 people have browsed it

HTML5 semantic elements and which older browsers does it support?

#Internet Explorer 8 and earlier does not support semantic elements such as navigation, titles, and articles. To style semantic elements, Modernizer is used. Some CSS can be added to block CSS by default.

article, header, nav, section, footer
{
   display:block;
}
Copy after login

We can also create our own elements through JavaScript by writing the following code -

<script>
   document.createElement(&#39;nav&#39;); //nav is semantic element
   document.createElement(&#39;header&#39;); //header is semantic element
   document.createElement(&#39;article&#39;); //article is semantic element
</script>
Copy after login

The above is the detailed content of HTML5 semantic elements and which older browsers does it support?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
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