84
HTML5 Migration
HTML5 migration specifies that how to migrate from HTML4 to HTML5. Let?s see how to convert HTML4 page into HTML5 page without any problem in content or structure.
Table:
In HTML4 | In HTML5 |
---|---|
<div id=”header”> | <header> |
<div id=”menu”> | <nav> |
<div id=”content”> | <section> |
<div class=”article”> | <article> |
<div id=”footer”> | <footer> |
Let’s see a typical HTML4 page.
Example:
Change HTML4 Doctype to HTML5 Doctype
HTML4 Doctype Syntax:
HTML5 Doctype Syntax:
Example:
Next TopicHTML Color Names