HTML5 was designed to do virtually anything you want to do online without having to download browser plugins or other software. Want to create animations? Embed music and movies? Build advanced applications that run in your browser? You can with HTML5.

In this post, we’ll cover everything you need to know about HTML5, including:

Download Now: Free Intro Guide to HTML & CSS

什么是HTML5?

HTML5是最新版本HTML。该术语指的是两件事。一种是更新的HTML语言本身,具有新的元素和属性。第二个是与此新版本的HTML一起使用的较大的技术,例如新的视频格式 - 使您能够构建更复杂,更强大的网站和应用程序。

To understand how HTML has evolved over the years, let’s look at the differences between HTML and HTML5.

HTML vs HTML5

HTML is the World Wide Web's core markup language. Originally designed to semantically describe scientific documents, it has since evolved to describe much more.

今天大多数页面在web上使用HTML4建成。Although much improved since the first version of HTML written in 1993, HTML4 still had its limitations. It’s biggest was if web developers or designers wanted to add content or features to their site that weren’t supported in HTML. In that case, they would have to use non-standard proprietary technologies, like Adobe Flash, which required users to install browser plugins. Even then, some users wouldn’t be able to access that content or feature. Users on iPhones and iPads, for example, wouldn’t be able to since those devices don't support Flash.

Cue, HTML5. HTML5 was designed to cut out the need for those non-standard proprietary technologies. With this new version of HTML, you can create web applications that work offline, support high-definition video and animations, and know where you are geographically located.

To understand how HTML5 can do all that, let’s look at what’s new in this latest version of HTML.

What is new in HTML5?

HTML5设计的主要目标包括:

  • Making code easier to read for users and screen readers
  • Reducing the overlap between HTML, CSS, and JavaScript
  • 促进浏览器之间的设计响应能力和一致性
  • 支持多媒体无需闪光灯或其他插件

Each of these objectives informed the changes in this new version of HTML. Let’s focus on seven of those changes below.

新的语义元素

HTML5 introduced several new semantically meaningful tags. These include

,
,