Home About Us FAQ Free Articles Submit Trusted Websites/Articles Privacy Policy Contact Us

Search
  



Trusted Websites
Mold Maker-SANTO Precision Pla...
Gas Barbecue, Gas BBQ and Barb...
Clamp Meter Deree Electrical I...
Standard Chemical, Inc....
Business.com - The Business Se...
Manufacturers Directory On B2B...
Asian Manufacturers, Asian Sup...
Boston MA City Guide, Business...
Jon-Don Carpet Cleaning Suppli...
Glowstar solar lanterns emerge...
StandardSteelBuildings: Commer...
Pallet Racking, Shop Fittings,...

 

 

 

 

 

 

Create Html Page Titles
Home » Tutorials » Html »

Author: Excellentguide
Added: October 19, 2006

Page Titles


All HTML pages should have a page title.


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


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


<html>

<head>

<title>My first web page</title>

</head>

<body>

This is my first web page

</body>

</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 that will load before the body information. The information in the head element does not appear in the browser window.


We will see later on that other elements can appear inside the head element, but the most important of them is the title element.


If you look at this document in the browser (save and refresh as before), you will see that 'My first web page' will appear on the title bar of the window (not the actual canvas area). The text that you put in between the title tags has become the title of the document (surprise!). If you were to add this page to your 'favourites', you would see that the title is also used there.



 

 

 

Home Link to Us Our Partners Contact Us

                                                                                   -- Site Pro News      ComputerScripts.com - Free & Commercial Web Scripts!      Ex-design.net