Tell a friend about this site

Home Page

Next Page

Previous Page

Contents Page


Download tutorial in Zip form







When your first web page is up on the World Wide Web, why not apply for our Good Start Award?

TaFWeb Good Start Award

More Text Formatting

As well as making text appear bold, italic or underlined (see Introduction to HTML) HTML provides several other ways of changing the appearance of text in your document.

Heading Styles

HTML allows for seven different heading styles. As the name suggests, these are meant to be used for headings and sub- heading in your document. Using the heading styles is simple -- the styles are numbered from 1 to 6 (1 being the largest, 6 the smallest), and you simply surround the heading text with the appropriate heading tags. For example:

<H2>Main Heading</H2>
Normal text goes here...<BR>

<H3>Sub-Heading</H3>
More normal text here...        Example

In the your browser, this example would appear like this:

Main Heading

Normal text goes here...

Sub-Heading

More normal text here...

Notice that we don't need to put line break or paragraph tags after each heading -- the heading tags carry "implied paragraph tags". In other words, because they are intended to be used as headings, the browser assumes that you want a paragraph break at the end even if you don't say so.

Try out the various heading styles by creating a document like the one below and viewing it in your browser. If possible (and this applies to all the examples in these pages) you should try and view your documents with as many different browsers as you can. This is because different browsers may interpret the same tags in slightly different ways.

<H1>Heading 1 style</H1>
<H2>Heading 2 style</H2>
<H3>Heading 3 style</H3>
<H4>Heading 4 style</H4>
<H5>Heading 5 style</H5>
<H6>Heading 6 style</H6>
Example

Try out the heading styles in your own documents, and then find out how we can specify more accurately how the text is to appear by looking at the next section on Specifying Text Size, Colour and Typeface.


rule


Top of Page


This page hosted by
Planet Tripod
Get your own
Free Home Page

 

These pages are copyright © Terry Franks June 2003.
Terry Franks
Last major revision: 22 August 1998 at 02:29 BST
This document URL: https://members.tripod.com/~terry_franks/webintro3.html
TerryFranks is
a member of

The HTML Writers Guild