Total Pageviews

Sunday 12 October 2014

Html5

HTML5


HTML5
(HyperText Markup Language)
HTML5 logo and wordmark.svg
Filename extension.html
Internet media typetext/html
Type codeTEXT
Uniform Type Identifier (UTI)index.html[1]
Developed byWorld Wide Web Consortiumand WHATWG
Type of formatMarkup language
Extended toXHTML5 (XML-serialized HTML5)
Open format?Yes
XHTML5 (XML-serialized HTML5)
Filename extension.xhtml, .html
Internet media typeapplication/xml, application/xhtml+xml
Developed byWorld Wide Web Consortium andWHATWG
Type of formatMarkup language
Extended fromXML, HTML5
Open format?Yes

HTML5 is a core technology markup language of the Internet used for structuring and presenting content for the World Wide Web. It is the fifth revision of the HTML standard (created in 1990 and standardized as HTML 4 as of 1997)[2] and, as of December 2012, is a candidate recommendation of the World Wide Web Consortium (W3C).[3] Its core aims have been to improve the language with support for the latest multimedia while keeping it easily readable by humans and consistently understood by computers and devices (web browsersparsers, etc.). HTML5 is intended to subsume not only HTML 4, but also XHTML 1 andDOM Level 2 HTML.[2]

Following its immediate predecessors HTML 4.01 and XHTML 1.1, HTML5 is a response to the fact that the HTML and XHTML in common use on the World Wide Web are a mixture of features introduced by various specifications, along with those introduced by software products such as web browsers, those established by common practice, and the many syntax errors in existing web documents.[4] It is also an attempt to define a single markup language that can be written in either HTML or XHTML syntax. It includes detailed processing models to encourage more interoperable implementations; it extends, improves and rationalises the markup available for documents, and introduces markup and application programming interfaces (APIs) for complexweb applications.[5] For the same reasons, HTML5 is also a potential candidate for cross-platform mobile applications. Many features of HTML5 have been built with the consideration of being able to run on low-powered devices such as smartphones and tablets. In December 2011, research firm Strategy Analytics forecast sales of HTML5 compatible phones would top 1 billion in 2013.[6]

In particular, HTML5 adds many new syntactic features. These include the new <video><audio> and <canvas>elements, as well as the integration of scalable vector graphics (SVG) content (replacing generic <object> tags), andMathML for mathematical formulas. These features are designed to make it easy to include and handle multimedia andgraphical content on the web without having to resort to proprietary plugins and APIs. Other new elements, such as <section><article><header> and <nav>, are designed to enrich the semantic content of documents. Newattributes have been introduced for the same purpose, while some elements and attributes have been removed. Some elements, such as <a><cite> and <menu> have been changed, redefined or standardized. The APIs andDocument Object Model (DOM) are no longer afterthoughts, but are fundamental parts of the HTML5 specification.[5] HTML5 also defines in some detail the required processing for invalid documents so that syntax errors will be treated uniformly by all conforming browsers and other user agents.



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. W3C and WHATWG are currently working together on the development of HTML5.[9]

While HTML5 is 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. HTML5 on its own cannot be used for animation and 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, it became the topic of mainstream media around April 2010[10][11][12][13] after Apple Inc's then-CEO Steve Jobs issued a public letter titled "Thoughts on Flash" where he concludes 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".[14] This sparked a debate in web development circles where some suggested 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.[15] In early November 2011, Adobe announced that it will discontinue development of Flash for mobile devices and reorient its efforts in developing tools utilizing HTML5.[16]

Standardization process

The Mozilla Foundation and Opera Software presented a position paper at a World Wide Web Consortium (W3C) workshop in June 2004,[17] focusing on developing technologies that are backward compatible with existing browsers,[18] 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.[19] Later that month, work based upon that position paper moved to the newly formed Web Hypertext Application Technology Working Group (WHATWG), and a second draft, Web Applications 1.0, was also announced.[20] The two specifications were later merged to form HTML5.[21] The HTML5 specification was adopted as the starting point of the work of the new HTML working group of the W3C in 2007.

2008 – First Public Working Draft

WHATWG published the First Public Working Draft of the specification on 22 January 2008.[22] Parts of HTML5 have been implemented in browsers despite the whole specification not yet having reached final Recommendation status.

2011 – Last Call

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 is developing a comprehensive test suite to achieve broad interoperability for the full specification by 2014, which is now the target date for Recommendation.[23] In January 2011, the WHATWGrenamed its "HTML5" living standard to "HTML". The W3C nevertheless continues its project to release HTML5.[24]

2012 – Candidate Recommendation

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]

2014 – Proposed Recommendation

In September 2014, W3C moves HTML5 to Proposed Recommendation.[29]

Plan 2014

In September 2012, the W3C proposed a plan[30] to release a stable HTML5 Recommendation by the end of 2014 and an HTML 5.1 specification Recommendation by the end of 2016.

Core HTML specification

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

20122013201420152016
HTML 5.0Candidate RecCall for ReviewRecommendation
HTML 5.11st Working DraftLast CallCandidate RecRecommendation
HTML 5.2[30]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:

Some specifications that were initially developed standalone have been adapted as HTML5 extensions or features by reference: SVGMathMLWAI-ARIA.





Markup

HTML5 introduces elements and attributes that reflect typical usage on modern websites. Some of them are semanticreplacements 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>.[31][32][33] 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.[34] 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[35][36] 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.[37]Since 5 January 2009, HTML5 also includes Web Forms 2.0, a previously separate WHATWG specification.[38][39]

New APIs

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

HTML5 related APIs.[41]

Not all of the above technologies are included in the W3C HTML5 specification, though they are in the WHATWG HTML specification.[46] 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:

  • Geolocation
  • Web SQL Database, a local SQL Database (no longer maintained).[47]
  • The Indexed Database API, an indexed hierarchical key-value store (formerly WebSimpleDB).[48]
  • HTML5 File API,[49] handles file uploads and file manipulation.[50]
  • Directories and System, an API intended to satisfy client-side-storage use cases not well served by databases.[51]
  • File Writer, an API for writing to files from web applications.[52]
  • Web Audio API,[53] a high-level JavaScript API for processing and synthesizing audio in web applications.
  • ClassList API[54]

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[55][not in citation given], 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,[56] and must conform to strict, well-formed syntax of XML. XHTML5 is simply a 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 termed "polyglot markup".[57]

Error handling

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














No comments:

Post a Comment