Page Title

HTML Beginner Tutorials On How To Make A Website

The basic structure of an HTML document includes tags, which surround content and apply meaning to it. Change your document 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</title>
</head>
<body>
This is my first web page
</body>
</html>

Page Title. We have added two new elements here, that start with the head tag and the title tag (see how both of these close).

The head element 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>, contains information about the page. 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 on the web page. The text that you put in between the title tags has become the title of the document. If you were to add this page to your 'favourites' (or 'bookmarks', depending on your browser), you would see that the title is also used there.

Related Pages





2 create a website
STOP! READ THIS! Want to make a website and don't know where to start click here
Make a Website