Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Design > Voices That Matter

  • Print
  • + Share This
This chapter is from the book

Creating the Foundation

Most Web pages are divided into two sections: the head and the body. The head section is where you define the title of your page, include information about your page for search engines like Google, set the location of your page, add style sheets, and write scripts. Except for the title (see page 64), the content of the head section is not readily visible to the visitor.

To create the head section

  1. Directly after the opening html tag (see page 60), type <head>.
  2. Leave a few spaces for the contents of the head section.
  3. Type </head>.

The body of your (X)HTML document encloses the content of your Web page, that is, the part that your visitors will see, including the text and graphics.

To create the body

  1. After the final </head> tag, type <body>.
  2. Leave a few spaces for the contents of your Web page (which you'll create with the help of the rest of this book).
  3. Type </body>.

Example 3.3. The head and body elements help you structure your (X)HTML documents.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">


<head>


   </head>

   <body>




   </body>
</html>
  • + Share This
  • 🔖 Save To Your Account