Chapter 2. INTRODUCING HTML BASICS

Create a Basic Web Page

While every Web page will be slightly different, each will contain the same set of basic structure tags. Properly formed Extensible Hypertext Markup Language (XHTML) documents will begin with the appropriate document type declaration. Following that, they will have an <html> tag, which needs to contain the xmlns attribute. This tag will contain all of the rest of the content of the page, so its opening tag will immediately follow the DOCTYPE and its closing tag will be the last one the page, as the DOCTYPE does not have a closing tag.

Your document will then be divided into two sections. The top section is the head, into which you will eventually place information used by the browser and ...

Get HTML, XHTML, and CSS: Your visual blueprint™ for designing effective Web pages 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.