Back to Steve's World

The Absolute Beginners Guide to HTML

 

Lesson 2 – HTML Tags & URL’s

 

HTML tags

Most tags in HTML have a start and an end – for example the start and end of the TITLE line. Think of them as switches, switch on – switch off. The end tag has a ‘ / ‘ in it, like </TITLE>. Some don’t have an end, but where there is one you need to remember to use it, otherwise your page might not look right.

Ever web page has two sections – a header (<HEAD>…</HEAD>) and a body (<BODY>…</BODY>)

The header usually contains instructions to the browser that are not seen on the page. The body is the main part where you put stuff you want people to see. There is a lot more to HTML than just that, but everything starts from a simple page.

 

A simple web page

The simplest web page only has 8 lines.

<HTML>

<HEAD>

<TITLE>This is my Web Page</TITLE>

</HEAD>

<BODY>

Hey, I'm so cool

</BODY>

</HTML>

The words in the angle brackets (< & >) are called tags. When you look at a page the tags aren’t shown – they give the instructions to you browser and tell it how to show the page. For example the first line tells your browser that this is an HTML document, but the word HTML doesn’t appear on the screen.

 

  

What’s a URL

The full name of a Web page has three parts.

The first is just the letters ‘http’. This stands for HyperText Transport Protocol and is the way that Internet computers send web pages to each other.

The second part is the Internet name for the computer that stores the page that you want. So www.microsoft.com would be the computer at Microsoft that stores all its web pages.

The final bit is the name of the file itself – usually with htm or html to show it is a web page. Important – If it is missing then the server will assume that you want a page called ‘index.html’ or ‘index,htm’ or ‘default.htm’ so it is a good idea to have a file with at least one of the names on your site.

The full name is called the URL , which stands for Uniform Resource Locator. This page is at http://www.paperman2.currantbun.com/tutorial/html-lesson2.htm

http://
www.paperman2.currantbun.com
tutorial/
html-lesson2/
PROTOCOL
DOMAIN
DIRECTORY
FILE
This is a web page
It's on this computer
In this directory
Called this

Back to Top
 
Hosted by www.Geocities.ws

1