Learning to write a web page

      __________ 
     /    ===== |
~~~~|O    ===== |
     \__________|

Combining and nesting tags

      __________ 
     /    ===== |
~~~~|O    ===== |
     \__________|

Combining more attributes in one tag

As mentioned before, parameters (or attributes) for the same tags may be combined within one tag. For example: <font face="helvetica" size="+2">.....</font> rather than <font face="helvetica"><font face="+2">......</font></font>.

Nesting tags

Tags need to be properly nested. This means that a tag which is opened first, is closed last. This comes into play when you have more than one tag to act on the same piece of text, for example if you want to make it bold as well as red:

The <font color="red"><b>stress</b></font> in this sentence is obvious

comes out as: The stress in this sentence is obvious. Note the order of the tags: first the opening font tag, then the opening bold tag, then the text, then the closing bold tag, then finally the closing font tag. You could have had the bold tags outside the font tags with the same effect. And more than two tags may be nested.

Back to contents


What do we need? HTML and the .html file Tags Formatting Head and body
Size and shape Colour Colour table Colour wheels Pictures
Special characters Special characters table Hyperlinks Combining and nesting tags Lists
Tables Frames Style sheets Maps Forms Scripts Publicising (meta tags) Bits and pieces

Course created by Maria Turkenburg
TurkenburkiePower!!!©2001-2005