Back to Steve's World

The Absolute Beginners Guide to HTML

 

Lesson 3 � Getting Started

 

Your first page

Just talking about HTML might make it hard for you to understand how it works as you might find all these different bits confusing. These easiest way to learn is to see how it all goes together and actually write some HTML of your own.

 It�s a good idea to create a new directory (folder) where you will keep all your Web work. That way it is easy to find everything when you want to change anything and eventually when you publish it on the Internet.

I�ll call the folder "myweb" but you can chose any name you want.

Ther are three steps to your first page:

  • Type the HTML.
  • Save the file.
  • Look at the file using you browser.

 

Typing the HTML

Start your editor. If you are using Windows 95 / 98, you will find Notepad on the Accessories Menu.

Starting with an empty file type the following exactly as shown here. Take extra care with < , > ' and ' / '. (don�t type \ by mistake � it won�t work!)

 

<HTML>

<HEAD>

<TITLE>My First Web Page</TITLE>

</HEAD>

<BODY>

<H1>This is My Web Page</H1>

Welcome to my first web page.

</BODY>

</HTML> 

 

 

Saving the file

Save the file you have created in the homepage directory your created � call it "myfile.htm" ("myfile.html" if you use a Mac)

The "htm" or "html" tells you computer that it is a web document and it should be displayed in directories with an Internet symbol. 

 

Looking at the result.

To look at the result you�ll need to start your web browser. Now use the "File Open" command to chose your newly created document and display it.

If you typed everything correctly, it should look like the bit between the two lines. If it doesn�t look right, go back to the editor, fix any mistakes and save the file. Once saved you will need to use the "Refresh" button to look at the changed page.

Once it works, you can have a rest and feel good. You just built your first web page!

 

Back to Top
 
Hosted by www.Geocities.ws

1