https://github.com/givebest/html5-template
https://github.com/givebest/html5-template
html5-template
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/givebest/html5-template
- Owner: givebest
- Created: 2017-05-19T08:24:15.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-25T07:14:08.000Z (almost 8 years ago)
- Last Synced: 2025-02-14T10:23:30.673Z (3 months ago)
- Topics: html5-template
- Language: HTML
- Size: 4.88 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTML5 常用 meta 标签
HTML5可复用模板,尽可能保持简洁。
### DOCTYPE
```html
```
### charset
```html
```
### lang
```html
```
> [网页头部的声明应该是用 lang="zh" 还是 lang="zh-cn"?](https://www.zhihu.com/question/20797118)
### 优先使用 IE 最新版本和 Chrome
```html
```
### 360 使用 WebKit
```html
```
### 移动优先
```html
```
### 禁止自动转换为电话号码
```html
```
### Favicon icon
```html
```
### iOS 添加网页放到主屏幕展示的图标
```html
```
### 百度禁止转码
```html
```
### 手机QQ浏览器x5内核定制标签说明
> 详见:[http://open.mb.qq.com/web/doc?id=1201#_1](http://open.mb.qq.com/web/doc?id=1201#_1)
#### 1. x5-orientation:横竖屏控制
* landscape:强制横屏
实例说明:```html
```
* portrait:强制竖屏
实例说明:```html
```
* auto:跟随浏览器设置【默认】
实例说明:```html
```#### 2. x5-fullscreen:全屏控制
* true:强制全屏
实例说明:```html
```* auto:跟随浏览器设置【默认】
实例说明:
```html
```#### 3. x5-page-mode :页面模式
* default:普通浏览模式【默认】
实例说明:
```html
```* app:网页应用模式(定制工具栏,全屏显示)
实例说明:
```html
```### 其它
```html
```
## 参考
* [QQ手机浏览器 x5内核定制标签说明](http://open.mb.qq.com/web/doc?id=1201)
* [https://github.com/h5bp/html5-boilerplate](https://github.com/h5bp/html5-boilerplate)
* [http://fex.baidu.com/blog/2014/10/html-head-tags/](http://fex.baidu.com/blog/2014/10/html-head-tags/)