CREATE AN HTML5 WEB PAGE
A web page identified as an HTML5 web page means different things to different web browsers, depending on whether the browser itself supports HTML5, along with which specific features. Chapter 1, “Introducing HTML5,” discusses how to identify which features an HTML5 browser supports; you can use this information later in building your web page, but first, you must identify that your page is designed for HTML5.
Every HTML5 web page requires a special doctype element as the first element on the page. The whole line becomes a doctype declaration, or DTD. If you are familiar with HTML 4.01, the DTD was a long, cumbersome string that described which version of HTML or XHTML the page supported. For example, the following describes ...
Get HTML5: Your visual blueprint™ for designing rich web pages and applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.