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
WBOYforward
2023-09-20 13:17:02652browse

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;
}

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>

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete