Learn HTML Easily - Part 2
page  Main   1   2   3

Extendable tags:
    Quite a few tags are extendable - that is, the tags can be given extra qualities. An example is the Horizontal Ruler tag. This is normally drawn in the centre of the page, and across the full width of the page. However, these attributes (the default ones) can be altered, as in the following six examples.

   
<hr width="40%" />


   
<hr width="50%" align="left" />


   
<hr width="60%" size="8" />


   
<hr width="45%" size="12" noshade />


   
<hr width="30%" size="16" noshade color="green" />


   
<hr width="200" align="left" color="blue" /> (the width is in pixels)

More on extendable tags:
    The BODY tag has quite a few attributes that can be used. Here are a few of them.
<body bgcolor="blue" background="bgpic.gif" text="yellow" link="green" alink="red" vlink="white"> where 'bgcolor' is the background colour of the page (when not covered by a background picture), 'background' is the background picture which is tiled onto the background, over any chosen background colour, 'text' is the colour of the text, 'link' is the colour of hypertext links, 'alink' is the colour of a link when activated by the mouse, and 'vlink' is the colour of visited hypertext links.
    Some of the colour names are:
aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, yellow
aqua  black  blue  fuchsia  gray  green  lime  maroon  navy  olive  purple  red  silver  teal  white  yellow
(- or you can specify your own colour by writing "#rrggbb" where rr, gg and bb are the Red, Green and Blue colour indexes in hexadecimal, ie bgcolor="#FFFF00" would give a yellow background).
    On all future pages, we will use a background picture, as it makes the page look more 'finished'. The picture we will use is as follows:



    OK, enough boring stuff! Let's take a break from the 'mainline' stuff, and learn how to install a sound file. There are quite a few formats, but the usual ones are .wav and .mid.
    In this instance, we're going to use a .mid file called "tune.mid" (which is on this disc).

    So, here's what to do to have a sound file playing on your page. Before the
</head> line, insert a new line, which reads <bgsound src="tune.mid">, or whatever the name of your sound file is. This will work mainly for Internet Explorer, as at this time, simple coding is all we want (but for the posh / advanced / curious amongst you, to see a more advanced coding which goes in place of the line given and is suitable for most browsers, as well as to hear the tune, click here).

    On now to a new page.
                 \|/ 
                (@ @)
     +----oOO----(_)-----------+
     |        Home made        |
     |        web pages        |
     |      are the best!      |
     +-----------------oOO-----+
               |__|__|  
                || ||
               ooO Ooo