Creating the HTML, Head, and Body Sections
All your HTML coding—except the DOCTYPE—should be placed within the two-sided tag <html>. Recall from Chapter 1, that when a tag is two-sided, it requires a corresponding closing tag that is identical to the opening tag but contains a slash: </html>. The tags <html> and </html> serve as a "wrapper" around all the other tags in the document.
In addition, your document should have two sections: a Head and a Body. The Head section is defined by the two-sided tag <head>. The Head section contains the page title, which is the text that will appear in the title bar of the Web browser and on the Microsoft Windows taskbar button. It also includes information about the document that is not displayed, such as its ...
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