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
Based on past experience, taking notes after comp...
Multi-table query Use a single select statement t...
Preface PC Server has developed to this day and h...
This article example shares the specific code of ...
This article example shares the specific code of ...
When making a table page, sometimes the width set ...
Inline format <colgroup>...</colgroup>...
1. Command Introduction The watch command execute...
Fabric.js is a very useful canvas operation plug-...
The purpose of writing scripts is to avoid having...
Table of contents 1. Introduction 2. Create a Vit...
MySQL password is correct but cannot log in local...
1. Install Baidu Eslint Rule plugin npm i -D esli...
Page turning problem scenario B and C are on the ...
1. Environment Ubuntu 16.04 running on a virtual ...