Home >Web Front-end >HTML Tutorial >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('nav'); //nav is semantic element document.createElement('header'); //header is semantic element document.createElement('article'); //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!