Markup for HTML5

Course- Javascript >

The previous version of HTML, HTML 4.01, has been around since 1999.

The XML-based version of HTML, XHTML, had been the subject of various recent W3C efforts, the latest having been moves toward XHTML2. In 2009 the W3C announced that XHTML2 was to be dumped in favor of diverting resources to a new version of HTML, HTML5.

Note how it’s written: HTML5. There’s no space between the L and the 5.

This latest incarnation of HTML concentrates on developing HTML as a front end for web applications, extending the markup language via semantically rich elements, introducing some new attributes, and adding the possibility to use brand-new APIs in conjunction with JavaScript.

The HTML5 standard was finalized as the new standard for HTML in the fall of 2014, and the major browsers already support many of the new HTML5 elements and APIs.

In this section, you learn how to control some of these powerful new features with JavaScript.


New Markup for HTML5

Even HTML pages that are well-formed are more difficult to read and interpret than they could be, because the markup contains very little semantic information.

Page sections such as sidebars, headers and footers, and navigation elements are all contained in general-purpose page elements such as divs, and only identifiable by the ID and class names invented by the page’s developer.

HTML5 adds new elements to more easily identify each of these, and more, types of content. Some of the new tags are listed in below

some new html5 tags