What's the key difference between HTML 4 and H

2019-01-12 14:25发布

What are the key differences between HTML4 and HTML5 draft?

Please keep the answers related to changed syntax and added/removed html elements.

标签: html html5 html4
8条回答
ゆ 、 Hurt°
2楼-- · 2019-01-12 15:07

HTML5 introduces a number of APIs that help in creating Web applications. These can be used together with the new elements introduced for applications:

  • An API for playing of video and audio which can be used with the new video and audio elements.
  • An API that enables offline Web applications.
  • An API that allows a Web application to register itself for certain protocols or media types.
  • An editing API in combination with a new global contenteditable attribute.
  • A drag & drop API in combination with a draggable attribute.
  • An API that exposes the history and allows pages to add to it to prevent breaking the back button.
查看更多
萌系小妹纸
3楼-- · 2019-01-12 15:07

HTML 5 invites you give add a lot of semantic value to your code. What's more, there are natives solution to embed multimedia content.

The rest is important, but it's more technical sugar that will save you from doing the same stuff with a client programming language.

查看更多
登录 后发表回答