An Introduction to HTML

OK, this is for the person who wants to make a web page, but hasn’t a clue where to start. First off then, i’ll try and explain what happens when you view a web page.

You enter the address of the web site into the address bar, this is called the URL (Uniform Resource Locator). Through a process which I wont detail here, a page is returned to you. This page will generally have a .html extension.

What is a .html file then? Basically it is a text file, which you can make a web page in a basic text editor, such as notepad. To make it an html file, simply save it as ‘yourfilename.html’.

OK, you probably didn’t come here to here me blab on (well you’re gonna :p) so lets create a web page.
All web pages are made up of tags, these tags describe whatever goes in them (text for example). This may be confusing, so i’ll show you an example.

<font size=’3′>Hello World!</font> will generate this –> Hello World!
<font size=’1′>Hello World!</font> will generate this –> Hello World!
<font color=’red’>Hello World!</font> will generate this –> Hello World!

I hope this shows you what I mean. All tags require a closing tag, in the example shown above the opening tag is <font blah> and the closing tag is </font>.

Now try it for yourself! Open up notepad (or your text editor of choice) and type the following :

<html>
<head>
<title>My First Web page!</title>
</head>
<body>
<font size=’7′>Hello World</font>
</body>
</html>

All going well this will generate this - click me
Now obviously this is only the beginning, so check out other tutorials to find out more.

Rating: