html5有哪些新特性、移除了哪些元素?

<<<新特性>>>

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>

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值