HTML5 adds more semantic tags, such as header, footer, nav, etc., so we no longer need to use the following method to layout when writing pages: XML/HTML CodeCopy content to clipboard
And you can layout it like this: XML/HTML CodeCopy content to clipboard
But IE does not support forward, so if we want to support IE6, 7, 8, we need to add a little code in js and css, as follows: XML/HTML CodeCopy content to clipboard
CSS: header,content,footer{display:block} The above means to customize a tag as header and set it to block display. The complete code is attached below: XML/HTML CodeCopy content to clipboard
Let's talk about something irrelevant. Why should we write HTML in a semantic way? First, the code is easy to read. When others look at your code, they can understand it at a glance. Second, it is beneficial to SEO. Search engine crawlers will largely ignore the tags used for presentation and only focus on semantic tags. So, start writing your HTML using semantic tags. It’s not that hard, right? Appendix 1: The above article about using semantic tags to write your HTML compatible with IE6, 7, and 8 is all the content that the editor shares with you. I hope it can give you a reference and I also hope that you will support 123WORDPRESS.COM. Original URL: http://www.cnblogs.com/shouce/p/5385701.html |
<<: SQL Practice Exercise: Online Mall Database User Information Data Operation
>>: Ubuntu installation Matlab2020b detailed tutorial and resources
Table of contents 1. Basic Concepts ACID 3.AutoCo...
This article shares the specific code of JavaScri...
Preparation 1. Start the virtual machine 2. git t...
What is bond NIC bond is a technology that is com...
Vue3.0 has been out for a while, and it is necess...
This article example shares the specific code of ...
Management of input and output in the system 1. U...
<br />In the first section of this series, w...
Table of contents Method 1: Routing meta informat...
This article shares the specific code of jQuery t...
Based on theories such as Saussure's philosop...
So after registering a domain name and purchasing...
This article is based on MySQL 8.0 This article i...
Table of contents The significance of standard co...
This article describes how to install MySQL 5.7 f...