HTML5从入门到精通(复习查漏向
冷知识
万维网之始:第一个网站·蒂姆伯纳斯-李
HTML5
html5文档类型声明:
头部: <!doctype html>
字符集(charset):编码与解码采用的规则
UTF-8:万国码
<head>
<meta charset="UTF-8"> <!-- gb2322 -->
</head>
常用html实体
w3school-html实体大全
显示结果 | 描述 | 实体名称 |
---|---|---|
空格 | |
|
< | 小于号 | < |
> | 大于号 | > |
& | 和号 | & |
“ | 引号 | " |
‘ | 撇号 | ' (IE不支持) |
¢ | 分(cent) | ¢ |
£ | 镑(pound) | £ |
¥ | 元(yen) | ¥ |
€ | 欧元(euro) | € |
§ | 小节 | § |
© | 版权(copyright) | © |
® | 注册商标 | ® |
™ | 商标 | ™ |
× | 乘号 | × |
÷ | 除号 | ÷ |
重要标签
<meta>
属性Attribute | 用法Usage | 例Exaples |
---|---|---|
name – content | 一起使用设置网站元数据 | <meta name="keywords" content="xx,yy"> 、<meta name="description" content="xx.com-zz"> 为百度等搜索引擎提供关键字key 以及描述description |
charset | 定义网站字符编码形式 | utf-8 、gb2322 |
http-equiv | 容纳一些特殊 HTTP headers |
<meta http-equiv="refresh" content="2;url=https://www.baidu.com"> 2秒后跳转指定url |
待续