Creating a Site Framework in HTML5
In a valid HTML5 page, the only required tags are the doctype (more on doctype in a moment), title, and a block element, such as the paragraph tag with a little content.
Many of the tags in an HTML5 page will be familiar to you if you’ve worked with previous versions of HTML. You still surround the entire contents of the page with opening and closing
<html> tags, the
<head> tags contain the
<title> tags, and the contents of the page that will display in a web browser are contained within the
Here’s the essential structure of a simple HTML5 page. We review the new HTML5 tags, line by line, in the sections that follow.
<title>This is a simple page title</title>
<p>The content for a simple page goes here.</p>
Starting with the doctype
The doctype, which tells a browser how to interpret the HTML code in a web page, is one of the most significant changes in HTML5. In HTML4, web authors ...