<TITLE> and for other information not displayed on the page.
If you don't observe these requirements you will get unpredictable results. For example, if you type some text in the <HEAD> instead of the <BODY>, some browsers will ignore it, others will display it on screen.
Here's a basic, minimal page:
<HTML>
<HEAD>
<TITLE>This where the page title goes</TITLE>
</HEAD>
<BODY>
This is where the contents of your page go
</BODY>
</HTML>
I've used indentation and made the tags bold here simply to make the structure more obvious. Since all page design is done with tags, any line breaks, tabs, indents, extra spaces, etc., that you add do not have any effect on the final appearance of the page. The following example will produce exactly the same page as the previous one:
<HTML><HEAD>
<TITLE>This where the page title goes</TITLE> </HEAD><BODY>
This is where the contents of your page go</BODY></HTML>
To Create a Basic Page
- Start your text editor.
- Type in the text as it is in the first example above (ignore the indentation).
- Save the text with a filename such as test.html
- To view the page: start your browser and open the file (in Netscape and Explorer this option is on the File menu; for other browsers see the on-line help if you do not know how to load a file from disk).
View the skeleton page
--> NEXT: Understanding Tags
Page:
1
2
3
4
5
6
7
8
9
10
11
Chapter:
1
2
3
4
5
6
7
A