HTML5 made the page structure simpler and more meaningful. The two main differences are a shorter head and semantic layout tags.
| Point | Older HTML | HTML5 |
|---|
| Doctype | Long, with a DTD link | <!DOCTYPE html> |
| Charset | Long http-equiv meta tag | <meta charset="UTF-8"> |
| Layout | Many <div id="header"> tags | header, nav, main, section, footer |
<!-- Older style -->
<div id="header">...</div>
<div id="nav">...</div>
<div id="footer">...</div>
<!-- HTML5 style -->
<header>...</header>
<nav>...</nav>
<footer>...</footer>
See HTML Semantic Elements.
Learn more about the similar topics: