HTML5

HTML5
(HyperText Markup Language)
Filename extension .html
Internet media type text/html
Type code TEXT
Uniform Type Identifier (UTI) index.html[1]
Initial release 28 October 2014 (2014-10-28)[2]
Extended to XHTML5 (XML-serialized HTML5)
Standard WHATWG HTML
Open format? Yes
XHTML5
(XML-serialized HTML5)
Filename extension .xhtml, .html
Internet media type application/xml, application/xhtml+xml
Developed by World Wide Web Consortium and WHATWG
Type of format Markup language
Extended from XML, HTML5
Open format? Yes

HTML5 (No space between "HTML" and "5")[3] is a markup language used for structuring and presenting content on the World Wide Web. It is the fifth and current version of the HTML standard.

It was published in October 2014 by the World Wide Web Consortium (W3C)[2][4] to improve the language with support for the latest multimedia, while keeping it both easily readable by humans and consistently understood by computers and devices such as web browsers, parsers, etc. HTML5 is intended to subsume not only HTML 4, but also XHTML 1 and DOM Level 2 HTML.[5]

HTML5 includes detailed processing models to encourage more interoperable implementations; it extends, improves and rationalizes the markup available for documents, and introduces markup and application programming interfaces (APIs) for complex web applications.[6] For the same reasons, HTML5 is also a candidate for cross-platform mobile applications, because it includes features designed with low-powered devices in mind.

Many new syntactic features are included. To natively include and handle multimedia and graphical content, the new <video>, <audio> and <canvas> elements were added, and support for scalable vector graphics (SVG) content and MathML for mathematical formulas. To enrich the semantic content of documents, new page structure elements such as <main>, <section>, <article>, <header>, <footer>, <aside>, <nav> and <figure>, are added. New attributes are introduced, some elements and attributes have been removed, and others such as <a>, <cite> and <menu> have been changed, redefined or standardized.

The APIs and Document Object Model (DOM) are now fundamental parts of the HTML5 specification[6] and HTML5 also better defines the processing for any invalid documents.[7]

History

The Web Hypertext Application Technology Working Group (WHATWG) began work on the new standard in 2004. At that time, HTML 4.01 had not been updated since 2000,[8] and the World Wide Web Consortium (W3C) was focusing future developments on XHTML 2.0. In 2009, the W3C allowed the XHTML 2.0 Working Group's charter to expire and decided not to renew it.[9] W3C and WHATWG are currently working together on the development of HTML5.[9]

The Mozilla Foundation and Opera Software presented a position paper at a World Wide Web Consortium (W3C) workshop in June 2004,[10] focusing on developing technologies that are backward compatible with existing browsers,[11] including an initial draft specification of Web Forms 2.0. The workshop concluded with a vote—8 for, 14 against—for continuing work on HTML.[12] Immediately after the workshop, the Web Hypertext Application Technology Working Group (WHATWG) was formed to start work based upon that position paper, and a second draft, Web Applications 1.0, was also announced.[13] The two specifications were later merged to form HTML5.[14] The HTML5 specification was adopted as the starting point of the work of the new HTML working group of the W3C in 2007.

WHATWG published the First Public Working Draft of the specification on 22 January 2008.[15]

"Thoughts on Flash"

While some features of HTML5 are often compared to Adobe Flash, the two technologies are very different. Both include features for playing audio and video within web pages, and for using Scalable Vector Graphics. However, HTML5 on its own cannot be used for animation or interactivity – it must be supplemented with CSS3 or JavaScript. There are many Flash capabilities that have no direct counterpart in HTML5. See Comparison of HTML5 and Flash. Although HTML5 has been well known among web developers for years, its interactive capabilities became a topic of mainstream media around April 2010[16][17][18][19] after Apple Inc's then-CEO Steve Jobs issued a public letter titled "Thoughts on Flash" where he concluded that "Flash is no longer necessary to watch video or consume any kind of web content" and that "new open standards created in the mobile era, such as HTML5, will win".[20] This sparked a debate in web development circles suggesting that, while HTML5 provides enhanced functionality, developers must consider the varying browser support of the different parts of the standard as well as other functionality differences between HTML5 and Flash.[21] In early November 2011, Adobe announced that it would discontinue development of Flash for mobile devices and reorient its efforts in developing tools using HTML5.[22]

Last Call, Candidate and Recommendation

On 14 February 2011, the W3C extended the charter of its HTML Working Group with clear milestones for HTML5. In May 2011, the working group advanced HTML5 to "Last Call", an invitation to communities inside and outside W3C to confirm the technical soundness of the specification. The W3C developed a comprehensive test suite to achieve broad interoperability for the full specification by 2014, which was the target date for recommendation.[23] In January 2011, the WHATWG renamed its "HTML5" living standard to "HTML". The W3C nevertheless continued its project to release HTML5.[24]

In July 2012, WHATWG and W3C decided on a degree of separation. W3C will continue the HTML5 specification work, focusing on a single definitive standard, which is considered as a "snapshot" by WHATWG. The WHATWG organization will continue its work with HTML5 as a "Living Standard". The concept of a living standard is that it is never complete and is always being updated and improved. New features can be added but functionality will not be removed.[25]

In December 2012, W3C designated HTML5 as a Candidate Recommendation.[26] The criterion for advancement to W3C Recommendation is "two 100% complete and fully interoperable implementations".[27][28]

On 16 September 2014, W3C moved HTML5 to Proposed Recommendation.[29]

On 28 October 2014, HTML5 was released as a stable W3C Recommendation,[30] bringing the specification process to completion.[2]

Future plans

According to the plan proposed by the W3C in September 2012,[31] the HTML 5.1 specification Recommendation will be targeted for the end of 2016.

Timeline

The combined timelines for HTML 5.0, HTML 5.1 and HTML 5.2:

2012 2013 2014 2015 2016
HTML 5.0 Candidate Rec Call for Review Recommendation
HTML 5.1 1st Working Draft Last Call Candidate Rec Recommendation
HTML 5.2[31] 1st Working Draft

Features and APIs

The W3C proposed a greater reliance on modularity as a key part of the plan to make faster progress, meaning identifying specific features, either proposed or already existing in the spec, and advancing them as separate specifications. Some technologies that were originally defined in HTML5 itself are now defined in separate specifications:

After the standardization of the HTML5 specification in October 2014,[33] the core vocabulary and features are being extended in four ways.[34] Likewise, some features that were removed from the original HTML5 specification have been standardized separately as modules, such as Microdata and Canvas. Technical specifications introduced as HTML5 extensions such as Polyglot Markup have also been standardized as modules. Some W3C specifications that were originally separate specifications have been adapted as HTML5 extensions or features, such as SVG. Some features that might have slowed down the standardization of HTML5 will be standardized as upcoming specifications, instead. HTML 5.1 is expected to be finalized in 2016, and it is currently on the standardization track at the W3C.

Features

Markup

HTML5 introduces elements and attributes that reflect typical usage on modern websites. Some of them are semantic replacements for common uses of generic block (<div>) and inline (<span>) elements, for example <nav> (website navigation block), <footer> (usually referring to bottom of web page or to last lines of HTML code), or <audio> and <video> instead of <object>.[35][36][37] Some deprecated elements from HTML 4.01 have been dropped, including purely presentational elements such as <font> and <center>, whose effects have long been superseded by the more capable Cascading Style Sheets.[38] There is also a renewed emphasis on the importance of DOM scripting (e.g., JavaScript) in Web behavior.

The HTML5 syntax is no longer based on SGML[39][40] despite the similarity of its markup. It has, however, been designed to be backward compatible with common parsing of older versions of HTML. It comes with a new introductory line that looks like an SGML document type declaration, <!DOCTYPE html>, which triggers the standards-compliant rendering mode.[41] Since 5 January 2009, HTML5 also includes Web Forms 2.0, a previously separate WHATWG specification.[42][43]

New APIs

HTML5 related APIs[44]

In addition to specifying markup, HTML5 specifies scripting application programming interfaces (APIs) that can be used with JavaScript.[45] Existing document object model (DOM) interfaces are extended and de facto features documented. There are also new APIs, such as:

Not all of the above technologies are included in the W3C HTML5 specification, though they are in the WHATWG HTML specification.[57] Some related technologies, which are not part of either the W3C HTML5 or the WHATWG HTML specification, are as follows. The W3C publishes specifications for these separately:

HTML5 cannot provide animation within web pages. Additional JavaScript or CSS3 functionality is necessary for animating HTML elements. Animation is also possible using JavaScript and HTML 4[68], and within SVG elements through SMIL, although browser support of the latter remains uneven as of 2011.

XHTML5 (XML-serialized HTML5)

XML documents must be served with an XML Internet media type (often called "MIME type") such as application/xhtml+xml or application/xml,[69] and must conform to strict, well-formed syntax of XML. XHTML5 is simply XML-serialized HTML5 data (e.g. not having any unclosed tags), sent with one of XML media types. HTML that has been written to conform to both the HTML and XHTML specifications – and which will therefore produce the same DOM tree whether parsed as HTML or XML – is called polyglot markup.[70]

Error handling

HTML5 is designed so that old browsers can safely ignore new HTML5 constructs.[6] In contrast to HTML 4.01, the HTML5 specification gives detailed rules for lexing and parsing, with the intent that compliant browsers will produce the same results when parsing incorrect syntax.[71] Although HTML5 now defines a consistent behavior for "tag soup" documents, those documents are not regarded as conforming to the HTML5 standard.[71]

Popularity

According to a report released on 30 September 2011, 34 of the world's top 100 Web sites were using HTML5  the adoption led by search engines and social networks.[72] Another report released in August 2013 has shown that 153 of the Fortune 500 U.S. companies implemented HTML5 on their corporate websites.[73]

Since 2014, HTML5 is at least partially supported by most popular layout engines.

Differences from HTML 4.01 and XHTML 1.x

The following is a cursory list of differences and some specific examples.

dev.w3.org provides the latest Editors Draft of "HTML5 differences from HTML 4",[75] which provides a complete outline of additions, removals and changes between HTML5 and HTML 4.

The W3C HTML5 logo

On 18 January 2011, the W3C introduced a logo to represent the use of or interest in HTML5. Unlike other badges previously issued by the W3C, it does not imply validity or conformance to a certain standard. As of 1 April 2011, this logo is official.[76]

When initially presenting it to the public, the W3C announced the HTML5 logo as a "general-purpose visual identity for a broad set of open web technologies, including HTML5, CSS, SVG, WOFF, and others".[77] Some web standard advocates, including The Web Standards Project, criticized that definition of "HTML5" as an umbrella term, pointing out the blurring of terminology and the potential for miscommunication.[77] Three days later, the W3C responded to community feedback and changed the logo's definition, dropping the enumeration of related technologies.[78] The W3C then said the logo "represents HTML5, the cornerstone for modern Web applications".[76]

Digital rights management

Industry players including the BBC, Google, Microsoft, and Netflix have been lobbying for the inclusion of Encrypted Media Extensions (EME),[79][80][81][82][83] a form of digital rights management (DRM), into the HTML5 standard. As of the end of 2012 and the beginning of 2013, 27 organisations[84] including the Free Software Foundation[85] have started a campaign against including digital rights management in the HTML5 standard.[86][87] However, in late September 2013, the W3C HTML Working Group decided that Encrypted Media Extensions, a form of DRM, was "in scope" and will potentially be included in the HTML 5.1 standard.[88][89] WHATWG's "HTML Living Standard" continued to be developed without DRM-enabled proposals.[89]

Manu Sporny, a member of the W3C, said that EME will not solve the problem it's supposed to address.[90] Opponents point out that EME itself is just an architecture for a DRM plug-in mechanism.[91]

The initial enablers for DRM in HTML5 were Google[92] and Microsoft.[93] Supporters also include Adobe.[94] On 14 May 2014, Mozilla announced plans to support EME in Firefox, the last major browser to avoid DRM.[95][96] Calling it "a difficult and uncomfortable step", Andreas Gal of Mozilla explained that future versions of Firefox would remain open source but ship with a sandbox designed to run a content decryption module developed by Adobe.[95] While promising to "work on alternative solutions", Mozilla's Executive Chair Mitchell Baker stated that a refusal to implement EME would have accomplished little more than convincing many users to switch browsers.[96] This decision was condemned by Cory Doctorow and the Free Software Foundation.[97][98]

See also

Notes

    References

    1. "Mac Developer Library: System-Declared Uniform Type Identifiers". Apple. 2009-11-17.
    2. 1 2 3 "HTML5 specification finalized, squabbling over specs continues". Ars Technica. 2014-10-29. Retrieved 2014-10-29.
    3. Release page for the standard
    4. "HTML5 is a W3C recommendation". W3C Blog. 28 October 2014. Retrieved 28 October 2014.
    5. "HTML5 Differences from HTML4". Working Draft. World Wide Web Consortium. 5 April 2011. Introduction. Retrieved 2011-04-30. HTML 4 became a W3C Recommendation in 1997. While it continues to serve as a rough guide to many of the core features of HTML, it does not provide enough information to build implementations that interoperate with each other and, more importantly, with a critical mass of deployed content. The same goes for XHTML1, which defines an XML serialization for HTML4, and DOM Level 2 HTML, which defines JavaScript APIs for both HTML and XHTML. HTML5 will replace these documents.
    6. 1 2 3 "HTML5 Differences from HTML4". World Wide Web Consortium. 19 October 2010. Retrieved 4 December 2010.
    7. "1.9.2 Syntax Errors". HTML5. 16 November 2010. Retrieved 4 December 2010.
    8. "HTML 4 Errata". World Wide Web Consortium. Retrieved 4 December 2010.
    9. 1 2 "Frequently Asked Questions (FAQ) About the Future of XHTML". World Wide Web Consortium. Retrieved 4 December 2010.
    10. "Position Paper for the W3C Workshop on Web Applications and Compound Documents". World Wide Web Consortium. Retrieved 30 December 2011.
    11. "W3C Workshop on Web Applications and Compound Documents (Day 1) Jun 1, 2004". World Wide Web Consortium. Retrieved 30 December 2011.
    12. "W3C Workshop on Web Applications and Compound Documents (Day 2) Jun 2, 2004". World Wide Web Consortium. Retrieved 30 December 2011.
    13. "[whatwg] WHAT open mailing list announcement". lists.w3.org Mailing Lists. Retrieved 8 December 2015.
    14. "This Week in HTML 5 – Episode 5". WHATWG Blog. Retrieved 30 December 2011.
    15. "HTML5: A vocabulary and associated APIs for HTML and XHTML.". World Wide Web Consortium. Retrieved 28 January 2009.
    16. "FOX News: No Flash on the iPhone? Apple's Steve Jobs Finally Explains Why". Fox News. 29 April 2010.
    17. "TIME: Steve Jobs: 'Flash is No Longer Necessary' and Other Musings". Time. 29 April 2010.
    18. "Steve Jobs: Why Apple Banned Flash". CBS News.
    19. "FastCompany: Steve Jobs: Adobe's Flash Is Old PC History, Open Web Is the Future".
    20. "'Thoughts on Flash', by Steve Jobs, CEO of Apple, Inc". Apple.com. Retrieved 2014-01-08.
    21. "Is HTML5 Replacing Flash?". Lyquix.com. Retrieved 2014-01-08.
    22. "Flash to Focus on PC Browsing and Mobile Apps; Adobe to More Aggressively Contribute to HTML5". adobe.com. Retrieved 26 February 2012.
    23. "W3C Confirms May 2011 for HTML5 Last Call, Targets 2014 for HTML5 Standard". World Wide Web Consortium. 14 February 2011. Retrieved 18 February 2011.
    24. Hickson, Ian. "HTML Is the New HTML5". Retrieved 21 January 2011.
    25. "HTML5 gets the splits.". netmagazine.com. Retrieved 23 July 2012.
    26. "HTML5". W3.org. 2012-12-17. Retrieved 2013-06-15.
    27. "When Will HTML5 Be Finished?". FAQ. WHAT Working Group. Retrieved 29 November 2009.
    28. "HTML5: A vocabulary and associated APIs for HTML and XHTML (Editor's Draft).". World Wide Web Consortium. Retrieved 12 April 2010.
    29. "Call for Review: HTML5 Proposed Recommendation Published W3C News". W3.org. 2014-09-16. Retrieved 2014-09-27.
    30. "Open Web Platform Milestone Achieved with HTML5 Recommendation". W3C. 28 October 2014. Retrieved 29 October 2014.
    31. 1 2 "Plan 2014". World Wide Web Consortium. Retrieved 23 September 2012.
    32. https://www.w3.org/2008/webapps/wiki/PubStatus
    33. "HTML5, A Vocabulary and Associated APIs for HTML and XHTML". Retrieved 10 March 2015.
    34. Leslie Sikos. "HTML5 Became a Standard, HTML 5.1 and HTML 5.2 on the Way". Retrieved 10 March 2015.
    35. Introduction to HTML5 video
    36. IBM Developer Works New elements in HTML5: Structure and semantics
    37. ICAMD.org Finalcut Silverlight Films that Videographers share Quicktime in a Flash : Video on the Web using HTML5 and other Codecs
    38. "11 Obsolete features — HTML5". W3C. Retrieved 2014-03-11.
    39. HTML5 DTD: "HTML5 is not SGML-based, and there will be no official DTD for it."
    40. HTML 5 Reference: "Although it is inspired by its SGML origins, in practice, it really only shares minor syntactic similarities." "As HTML5 is no longer formally based upon SGML, the DOCTYPE no longer serves this purpose, and thus no longer needs to refer to a DTD."
    41. Shannon Suetos (26 April 2010). "HTML5: Worth the Hype?". instantshift.com. Retrieved 21 October 2012.
    42. "Web Forms 2.0". 2009-01-05. Retrieved 2014-02-11. obsolescence notice
    43. "HTML". whatwg.org.
    44. Sergey Mavrody "Sergey's HTML5 & CSS3 Quick Reference. 2nd Edition". Belisso Corp., 2012. ISBN 978-0-9833867-2-8
    45. "HTML5 Differences from HTML4 – APIs". World Wide Web Consortium.
    46. "Get Started with HTML5 Canvas". Syntaxxx.
    47. "HTML". whatwg.org.
    48. "Offline Web Applications". World Wide Web Consortium.
    49. "HTML". whatwg.org.
    50. "HTML". whatwg.org.
    51. "HTML elements, HTML5". w3.org.
    52. "HTML". whatwg.org.
    53. "HTML". whatwg.org.
    54. "HTML". whatwg.org.
    55. "HTML5 Web Messaging". World Wide Web Consortium.
    56. "Web Storage Specification". World Wide Web Consortium.
    57. href. "1 Introduction — HTML Standard". Whatwg.org. Retrieved 2014-01-08.
    58. "Web SQL Database". World Wide Web Consortium.
    59. "Indexed Database". World Wide Web Consortium.
    60. "File API". W3.org. Retrieved 2014-01-08.
    61. "File API". World Wide Web Consortium.
    62. "Filesystem API". World Wide Web Consortium.
    63. "File API: Writer". World Wide Web Consortium.
    64. "Web Audio API". Dvcs.w3.org. Retrieved 2014-01-08.
    65. MDN. "element.classList".
    66. Web Cryptography Candidate Recommendation: https://www.w3.org/TR/WebCryptoAPI/
    67. WebRTC Working Draft: https://www.w3.org/TR/webrtc/
    68. Williamson, James (2010). "What HTML5 is (and what it isn't)". Retrieved 2014-05-14.
    69. van Kesteren, Anne. "HTML5 differences from HTML4 – W3C Working Draft 19 October 2010". World Wide Web Consortium. Retrieved 2 November 2010.
    70. Graff, Eliot. "Polyglot Markup: HTML-Compatible XHTML Documents". W3C. Retrieved 6 July 2013.
    71. 1 2 "FAQ – WHATWG Wiki". WHATWG. Retrieved 26 August 2011.
    72. "Percentage of Web sites Using HTML5". binvisions. Retrieved 21 October 2011.
    73. "HTML5 Popularity Among Fortune 500 Companies". INCORE. Retrieved 5 March 2013.
    74. "HTML5 form additions". World Wide Web Consortium. Retrieved 13 October 2014.
    75. "HTML5 Differences from HTML4". FAQ. World Wide Web Consortium. 14 September 2012. Retrieved 29 September 2012.
    76. 1 2 "W3C HTML5 Logo FAQ". World Wide Web Consortium. Retrieved 21 January 2011. Is this W3C's "official" logo for HTML5? Yes, as of 1 April 2011.
    77. 1 2 "HTML5 Logo: Be Proud, But Don't Muddy the Waters!". The Web Standards Project. Retrieved 22 January 2011.
    78. "The HTML5 Logo Conversation". World Wide Web Consortium. Retrieved 21 January 2011.
    79. Encrypted Media Extensions draft specification of the W3C
    80. Peter Bright (16 April 2013). "Netflix coming to HTML5 just as soon as the DRM ducks are in a row". Ars Technica.
    81. Manu Sporny (26 January 2013). "DRM in HTML5".
    82. "Tell W3C: We don't want the Hollyweb". Free Software Foundation. May 2013.
    83. "HTML5 webpage locks 'would stifle innovation'". BBC News Online. 30 May 2013.
    84. "Une coalition de vingt-sept organisations demande au W3C de garder les menottes numériques (DRM) hors des standards du Web". 2013-04-24. Retrieved 2014-05-14.
    85. Tell W3C: We don't want the Hollyweb http://www.defectivebydesign.org/no-drm-in-html5
    86. Stallman, Richard (2013-05-02). "The W3C's Soul at Stake". The Free Software Foundation. Retrieved 2014-05-14.
    87. Lord, Timothy (2013-04-16). "Netflix Wants to Go HTML5, but Not Without DRM". Retrieved 2014-05-14.
    88. "New Charter for the HTML Working Group from Philippe Le Hegaret on 2013-09-30 (public-html-admin@w3.org from September 2013)". Lists.w3.org. 2013-09-30. Retrieved 2014-01-08.
    89. 1 2 Danny O'Brien (2013-10-02). "Lowering Your Standards: DRM and the Future of the W3C". Electronic Frontier Foundation. Retrieved 2013-10-03.
    90. Manu Sporny (2013-01-26). "DRM in HTML5". The Beautiful, Tormented Machine. Manu Sporny. Archived from the original on 2014-04-25. Retrieved 2014-05-16.
    91. Scott Gilbertson (2013-02-12). "DRM for the Web? Say It Ain't So". Webmonkey. Condé Nast. Archived from the original on 2013-04-06. Retrieved 2013-03-21.
    92. "Releasenotes for Google Chrome 25.0.1364.87".
    93. "HTML5 Video in IE 11 on Windows 8.1".
    94. Adobe Support for Encrypted Media Extensions Adobe.com. 19 June 2013.
    95. 1 2 Gal, Andreas (2014-05-14). "Reconciling Mozilla's Mission and W3C EME". Mozilla. Retrieved 2014-05-20.
    96. 1 2 Baker, Mitchell (2014-05-14). "DRM and the Challenge of Serving Users". Mozilla. Retrieved 2014-05-20.
    97. Doctorow, Cory (2014-05-14). "Firefox's adoption of closed-source DRM breaks my heart". The Guardian. Retrieved 2014-05-20.
    98. "FSF condemns partnership between Mozilla and Adobe to support Digital Rights Management". Free Software Foundation. 2014-05-14. Retrieved 2014-05-20.
    Wikimedia Commons has media related to HTML5.
    This article is issued from Wikipedia - version of the 11/21/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.