O'Reilly logo

HTML, XHTML, and CSS: Your visual blueprint™ for designing effective Web pages by Rob Huddleston

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required