Title: Required Tags
URL: http://www.activejump.com/b-2.shtml
Email: webmaster@activejump.com
Introduction
All HTML documents have a few required tags, and those are what this section teaches. Below, each tag is laid out
and it will tell you exactly where it needs to go in the document.
First Tag: <HTML>
The <HTML> tag goes at the very beginning and very end of the document. At the beginning is the starting HTML Tag
<HTML>, and at the end is the closing HTML tag </HTML>. These tags tell the web browser which views the page,
that this is an HTML document. Everything in your HTML document goes between these two tags. So far, your HTML document
should look like this.
|
index.html - Notepad |
<HTML>
</HTML>
|
|
Second Tag: <HEAD>
The <HEAD> tag goes right after the starting HTML tag. Both starting and ending <HEAD> tags are right after
the starting HTML tag. Later, you will be putting information about your page between these two tags. Now, your
HTML document should look like this.
|
index.html - Notepad |
<HTML>
<HEAD> </HEAD>
</HTML>
|
|
Third Tag: <TITLE>
The <TITLE> tag goes between the <HEAD> tags. Between the starting and ending <TITLE> tag, goes the
name of your web page which will appear on Title bar on the top of the window. For example the title of this web page
is Required Tags. In the example below, the title will be My Homepage. Here is how your HTML
document should look so far.
|
index.html - Notepad |
<HTML>
<HEAD> <TITLE>My Homepage</TITLE> </HEAD>
</HTML>
|
|
Fourth Tag: <BODY>
The starting <BODY> tag goes right after the closing <HEAD> tag, and the closing is right before the closing <BODY>
tag goes right before the closing <HTML> tag. All the information displayed on your web page will be
put between the <BODY> tags.
|
index.html - Notepad |
<HTML>
<HEAD> <TITLE>My Homepage</TITLE> </HEAD>
<BODY>
</BODY>
</HTML>
|
|
Results
This is what the result of the HTML document and web page will be. As you can see, there is nothing on the page itself because there is nothing
between the <BODY> tags. The only thing you can see now is the text, My Homepage in the title bar.
|
index.html - Notepad |
<HTML>
<HEAD> <TITLE>My Homepage</TITLE> </HEAD>
<BODY>
</BODY>
</HTML>
|
|
|
My Homepage - Microsoft Internet Explorer |
|
|
|