Sponsored Ad

Wednesday, December 2, 2009

HTML Page Titles

To add a title to your page, change your code so that it looks like this:

 

 

 

 

 

 

 

 

  1. <html>
  2.  
  3. <head>
  4.     <title>My first web page</title>
  5. </head>
  6.  
  7. <body>
  8.     This is my first web page
  9. </body>
  10.  
  11. </html>

We have added two new elements here, that start with the head tag and the title tag (and see how both of these close).
The head element (that which starts with the <head> opening tag and ends with the </head> tag) appears before the body element (starting with <body> and ending with </body>) and contains information about the page. The information in the head element does not appear in the browser window.

0 comments:

Post a Comment

Sponsored Ad

Website Update

Followers