HTML-Lesson 2
Templates
A Template
Your first task is to create a folder on your computer named 'website'. This is where you are going to save all your website files. It is going to be an exact copy of your website, including any sub-folders. By making an exact copy, all linking references on your website will work both on your website as well as on your computer
Open up your text editor and type in the following exactly as shown:
<html>
</html>
Now go to 'file', 'save as' and for the file name use 'tmplt.htm' If you don't add the 'htm' extension, your editor will save it as a text (.txt) file and your browser will not recognise it. This html tag starts and ends your web page.
You will now add 'head' and 'body' tags. The 'head' tags enclose the invisible parts of the web page and the 'body' tags enclose the visible parts of the web page:
<html>
<head>
</head>
<body>
</body>
</html>
Now you can just click on 'save'.
Title
The title of your web page is important for several reasons:
- The name that you put into the 'title' tags appears in the top border of your browser. It should be a snappy description of your page.
- This 'title' is the file name under which a user will save your web page, unless, of course, they change the name. It should, therefore be, at least minimally, different from other pages on your site.
- This 'title' is going to appear in pages produced by search engines. So make it attractive and relevant.
<head>
<title> Your snappy informative title goes here <title>
</head>
<body>
</body>
</html>
Add your 'title' to 'tmplt.htm' and click on 'save'. That is all you need to know about the head for the time being. Now you need to know what goes in the body.