|
HTML documents have a certain format that you must follow so
that web browsers can understand how to display your page. Here
is and example HTML document:
<HTML>
<HEAD>
<TITLE>Hello!</TITLE>
</HEAD>
<BODY>
HELLO WORLD WIDE WEB!<BR>
</BODY>
</HTML>
Notice that almost all HTML tags are in pairs.
Paired tags have an open tag and a close tag.
For instance, the <HTML> tag is the open tag and the </HTML> tag is the close tag.
The <HTML>
tags denote a document that is formatted for the World Wide Web.
The <HEAD> tags define the heading of the document.
Within the <HEAD> section there are the <TITLE> tags,
and in between the tags is the text "Hello!"
This tells your browser to display "Hello!" on the title line of the window and it is used for bookmarks.
The <BODY> tags denote the main part of your document.
In this case we will display the words "HELLO WORLD WIDE WEB!"
on the web page. The <BR> tag at the end of the text is a line break.
&It;'s sort of like a carriage return.
When a browser sees a <BR> tag it starts the next text on the next line.
Finally, the </HTML> tag closes everything up.
If you type the above file with any text editor, save it as text with the name hello.htm or hello.html you'll be ready to load it into your web browser.
To do this use the open file function of your browser.
You should see a blank page with the words, "HELLO WORLD WIDE WEB!" in the upper left corner.
For more information about HTML, Site Design and Maintenance, check out the books in my Book Store.
|