Skip to content

Instantly share code, notes, and snippets.

@ThaddeusJiang
Created August 10, 2018 01:28
Show Gist options
  • Save ThaddeusJiang/fca9d4c22328b289044a7d86b203d1e6 to your computer and use it in GitHub Desktop.
Save ThaddeusJiang/fca9d4c22328b289044a7d86b203d1e6 to your computer and use it in GitHub Desktop.
HTML5 总结

1. HTML 5 增加了很多标签

// 如:
header
nav
section
article
footer
details
summary

2. HTML 5 标签有很多很多 type

// 如:
date
color

3. HTML 5 新增了很多 API

  • 拖放
  • web 存储: localStorage & sessionStorage
  • 缓存: cache manifest 文件
  • 后台运行的 JavaScript: Web Workers
  • 允许网页获得来自服务器的更新: server-sent event
  • 地理定位: Geolocation API
  • Canvas: 通过 JavaScript 绘制图形, 与 SVG 不同, SVG 是使用 XML 描述图形的语言, SVG 还很慢。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment