`
leonzhx
  • 浏览: 786753 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Introduction: Five Things You Should Know About HTML5

 
阅读更多

1.   HTML5 is a collection of individual features. So you can’t detect “HTML5 support,” because that doesn’t make any sense. But you can detect support for individual features, like canvas, video, or geolocation.

 

2.   The HTML5 specification not only defines new tags bug also defines how those angle brackets interact with JavaScript, through the Document Object Model (DOM ).

 

3.   HTML5 supports all the form controls from HTML 4, but it also includes new input controls.

 

4.   “Upgrading” to HTML5 can be as simple as changing your doctype. The doctype should be on the first line of every HTML page:

 

<!DOCTYPE html>
 

Upgrading to the HTML5 doctype won’t break your existing markup, because obsolete elements previously defined in HTML 4 will still render in HTML5 .

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics