Tel - 0845 644 2104
24/7 - 0709 237 8854
Fax - 0709 237 8859
E-mail CommRich
 
eBay shop

CommRich Limited

  
The Basics

HTML is the language of the Net. It's a simple, universal mark-up language that allows Web publishers to create complex pages of text and images that can be viewed by anyone else on the Web, regardless of what kind of computer or browser is being used.

Despite what you might have heard, you don't need any special software to create an HTML page; all you need is a word processor such as Microsoft Word. Lotus Word Pro or even Notepad, and a working knowledge of HTML. And lucky for all of us, basic HTML is really easy.

HTML is just a series of tags that are integrated into a text document. They're a lot like stage directions - silently telling the browser what to do, and what props to use.

HTML tags are usually English words (such as blockquote) or abbreviations (such as "p" for paragraph), but they are distinguished from the regular text because they are placed in small angle brackets. So the paragraph tag is <P>, and the blockquote tag is <BLOCKQUOTE>. Some tags dictate how the page will be formatted (for instance, <P> begins a new paragraph), and others dictate how the words appear (<B> makes text bold). Still others provide information - such as the title - that doesn't appear on the page itself.

The first thing to remember about tags is that they travel in pairs. Every time you use a tag - say <BLOCKQUOTE> - you must also close it off with another tag - in this case, </BLOCKQUOTE>. Note the slash - / - before the word "blockquote"; that's what distinguishes a closing tag from an opening tag.

The basic HTML page begins with the tag <HTML> and ends with </HTML>. In between, the file has two sections - the header and the body.

The header - enclosed by the <HEAD> and </HEAD> tags - contains information about a page that won't appear on the page itself, such as the title. The body - enclosed by <BODY> and </BODY> - is where the action is. Everything that appears on the page is contained within these tags.

Over the next few pages, I will be introducing you to the very basics of HTML authoring. Please note, that this will be just the basics, which will give you a better understanding of how to design a very simple web page. We will be using the Windows Notepad program to write our web pages in.

Introduction over... now let's get down to business.

So let's create our first simple page, shall we? We will be using good old Windows Notepad for this exercise.
The main page (index.html) is the first page a web browser will look for when entering a website and it will be the first page to build. Open Windows Notepad and type the following exactly...
Please note that HTML is not case sensitive. I have used uppercase tags, to help differentiate between the html tags and the actual text which will appear on the web page.

<HTML>
<HEAD>
<TITLE>My Motor Parts Business</TITLE>
</HEAD>

<BODY>
<H1>My Motor Parts Business</H1>

<H2>For all your automotive needs</H2>

<H3>This site is under construction</H3>

</BODY>
</HTML>

Now save this as "index.html". Note this is in lowercase, this is good practice as some web servers are based on Unix and these servers are case sensitive.
Now, open up your web browser and view the above file by using the 'File Open' option on your browser. You should end up with something looking like this, click here.

The tags that we have used are the headline tags.  <H1> is the tag for a headline (the largest headline, in fact) and there are a total of 6 headline tags with <H6> being the smallest.

You've just written your first piece of HTML, it's a bit basic, but we all have to start somewhere. Over the next few pages we will be adding some more basic commands to this example.

Go to Top
 

 
All products mentioned are registered trademarks or trademarks of their respective companies. 
For orders made from the UK or the European Union, VAT is added at the current rate. 
The CommRich VAT number is 786 2962 75          Site map                 Customers

 
Bookmark This Site

CommRich Privacy Policy
 

Your Rights as a Consumer

 
Copyright © 2002-2008 CommRich Limited
40 Forfar Street Northampton
Tel - 0845 644 2104
24/7 - 0709 237 8854
Fax - 0709 237 8859
E-mail CommRich
 
Registered Member of UK Web Design Association