Basic HTML tags

Here's a quick summary of the tags mentioned in this part of the tutorial, plus a couple of others that you might find useful.

Compulsory tags

<html> ... </html>
Put these around the whole of your document
<head> ... </head>
These denote the heading of your document, which should include the title tags
<body> ... </body>
Put these tags around the main text of your page
<title> ... <title>
The text between the tags will be the title for your page

Other tags

<a name="NAME"> ... </a>
Create a named anchor called 'NAME'
<a href="#NAME"> ... </a>
Create a link to the named anchor 'NAME'
<a href="path/filename"> ... </a>
Create a link to 'filename' in the directory 'path'
<a href="URL"> ... </a>
Create a link to a specified URL
<img src="picname" alt="Words">
Insert the picture 'picname', or display the text 'Words' instead
<h1> ... </h1>
Put these tags around the text for a top level heading
<h6> ... </h6>
Put these around the lowest level heading. You can use levels 2 to 5 as well.
<b> ... </b>
Text between these tags will appear in bold type
<i> ... </i>
These tags make text italic
<p>
End all your paragraphs with this tag
<br>
Force the browser to move to a new line
<hr>
Draw a horizontal line across the page

[ next ][ LAST ][ PART 1 ][ PART 2 ][ PART 3 ]

[ Back to the tutorial front page ]