<<<新特性>>>
1、文档声明方式:
New:变为一种
<!DOCTYPE html>
Old:三种模式:HTML4 Strict、HTML4 Transitional、HTML4 Frameset
2、语义化标签:(部分列举,本质都是div{display:block})
<nav></nav>
<header></header>
<main></main>
<article></article>
<section></section>
<footer></footer>
3、新标签/元素:
<video src=""></video>
<audio src=""></audio>
4、新表单输入类型:
<input type="email" name="" id="" />
<input type="date" name="" id="" />
<input type="time" />
<input type="color" name="" id="" />
<input type="search" />
5.新增API :(部分列举)
- 本地存储localStorage / sessionStorage:
window.localStorage
window.sessionStorage
- 画布canvas:
<canvas></canvas>
- 矢量图svg:
<svg width="px" height="px">
- 地理位置geolocation:
navigator.geolocation
- 拖拽与释放Drag and drop:
<button draggable="true"></button>
- js多线程接口Web Workers:
const worker = new Worker('worker');
- 一次请求多次响应的持久化的协议WebSocket:
<<<移除元素>>>
<basefont></basefont>
<font></font>
<big></big>
<center></center>
<tt></tt>
<strike></strike>
<frame></frame>
<frameset></frameset>
<noframes></noframes>