HTML5 Migration

HTML5 Migration

Migration from HTML4 to HTML5

The HTML5 have the new features and improvements to existing features. HTML5 includes all the elements that are present in the HTML4 and XHTML. It includes the redefinition of the existing markup elements. The redefinition of the HTML4 elements to the HTML5 is given below:

The simplest and most common example of this is the redefinition of the DIV element that contained the id attribute and had the assigned value header, footer, article, menu, and content. The revolution in HTML5 is that these assigned values are now the elements as:

< header >, < footer >, < nav >, < section >, and < article >. Let us illustrate the redefinition of HTML4.

HTML4 HTML5
< DIV id = “header” > < header >
< DIV id = “menu” > < nav >
< DIV id = “content” > < section >
< DIV id = “article” >
< DIV id = “footer” > < footer >

Difference between an HTML4 and HTML5 document

HTML4 Document

Consider the following document:

EXAMPLE:

< ! DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN”

“http://www.w3.org/TR/html4/strict.dtd” >

< html >


< title > The HTML4 Document