Pages

Friday, December 3, 2010

The Document HEADER or the Head Element

The <head> element describe the content of the document. Significantly, some information's contained inside the <head> element are used by search engines to index web pages. This information is referred to as metadata. There are numerous elements that you can include within the <head> element. The most common elements used are <meta>, <title>,<link>,<script> and <style> and their usage will also be discussed later on.


Here's another example that we've already seen. Note the use of the <head> element:
 
<!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>
          <meata http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
            <title>Document Root Example</title>
       </head>

<body>
      <h1>
           Document Root Example
      </h1>
  </body>
</html>

0 comments:

Post a Comment