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
Mine is: <!DOCTYPE html> Blog Garden: <!...
Table of contents Preface 1. cat command: 2. more...
Table of contents Preface preparation Go! text St...
1. Download, install and activate CLion Just foll...
Viewing and Setting SQL Mode in MySQL MySQL can r...
The datetime type is usually used to store time i...
Preface Since errors always occur, record the pro...
<br />When the page contains <img src=&qu...
Table of contents Preface 1. Demand and Effect ne...
Situation description: The database was started a...
Linux server hosts file configuration The hosts f...
HTML: Title Heading is defined by tags such as &l...
Box-sizing in CSS3 (content-box and border-box) T...
Recently, I used the webSocket protocol when work...
This article introduces the method of using CSS3 ...