Rediff Homepages

Line
Your Homepage
Line

Step 2 : Creating Your first HTML document

Lets jump headfirst into your first HTML document.
Open 'Notepad' or whichever editor you have chosen and start with the following...

<HTML>
</HTML>

Each one of those is called a tag. There is a starting tag and a closing tag. To make a closing tag just add a / to the starting tag. Most, but not all tags have a closing tag. Tags are a way to give instructions to the browser. What you have just told the browser that <HTML> is the start of a HTML document and </HTML> is the end of a HTML document.

Next, every HTML document needs a pair of HEAD tags.

<HTML>
<HEAD>
</HEAD>
</HTML>
Give your page a name within the TITLE tags.

<HTML>
<HEAD>
<TITLE>My first HTML page!</TITLE>
</HEAD>
</HTML>

And the bulk of the page is going to be within the BODY tags. Lets put the phrase 'Hello World' or any other text you like within the BODY tags.

<HTML>
<HEAD>
<TITLE>My first HTML page!</TITLE>
</HEAD>
<BODY>
Hello World!!!
</BODY>
</HTML>

Now save the document with the extension .htm or .html and your HTML document is ready. Congratulations!!! You have just created your first HTML document. You can now doubleclick on it and view it in a browser. This is the minimum requirement for an HTML document.

Top

Case Study : Ram Chandran's Homepage
As we go ahead with this tutorial we'll create a small homepage side by side using all the concepts we learn in the chapters. Lets take a look at the homepage of the imaginary Ram Chandran. To view the code of the example file use the view source option of your browser.

< Introduction | Index | Formatting Text >
Line

   Broadband | Chat | Contest | Movies | E-cards | Weather | Travel | | Romance | Astrology | Shopping
Money | Instant Messenger
| Auctions | Auto | Education | Jobs | TechJobs | Women | Technology

rediff.com
Disclaimer
© 2000 rediff.com India Limited. All Rights Reserved.