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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access