Online
 
Thursday, 20 November 2008
 
 

Separating Heads from Bodies | Print |  E-Mail
 
Whenever you write a Web page in HTML, the whole of the page is contained between the opening
<html> and closing </html> tags, just as it was in the last example. Inside the <html> element, there
are two main parts to the page:
❑ The <head> element: Often referred to as the head of the page, this contains information about
the page (this is not the main content of the page). It is information such as a title and a
description of the page, or keywords that search engines can use to index the page. It consists of
the opening <head> tag, the closing </head> tag, and everything in between.
❑ The <body> element: Often referred to as the body of the page, this contains the information
you actually see in the main browser window. It consists of the opening <body> tag, closing
</body> tag, and everything in between.
Inside the <head> element of the first example page you can see a <title> element:
<head>
<title>Acme Toy Company: About Us</title>
</head>
Between the opening and closing title tags are the words Acme Toy Company: About Us, which is the
title of this Web page. If you remember Figure 1-2, which showed the screenshot of this page, I brought
your attention to the words right at the top of the browser in the center. This is where Internet Explorer
(IE) displays the title of a document; it is also the name IE uses when you save a page in your favorites.
The real content of your page is held in the <body> element, which is what you want users to read, and is
shown in the main browser window.
The head element contains information about the document, which is not displayed
within the main page itself. The body element holds the actual content of the page
that is viewed in your browser.
This entry was posted on . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a comment.
Users' Comments (0)

Comment an article
  Name
  E-mail
   Title
Available characters: 4000
 Notify me of follow-up comments
This image contains a scrambled text, it is using a combination of colors, font size, background, angle in order to disallow computer to automate reading. You will have to reproduce it to post on my homepage
Enter what you see:

No comment posted

Jumbo Coklat
 
Top! Top!