[*] [Home page] [Basic HTML] [Forms] [CGI scripts] [New HTML] [*] [Under Construction] New HTML tags © Mike Smith M.A.Smith@brighton.ac.uk University of Brighton UK. Contents [*] Introduction to new HTML tags [*] Colour [*] Specifying a colour by name [*] Specifying a colour by RGB value [*] Colours for text, links, etc. [*] Frames [*] Frame attributes [*] Nesting frame windows [*] Targeting URL contents ------------------------------------------------------------ Warning if you are not using a browser that supports frames such as Netscape 2.0 or later then this page will probably be very difficult to read. ------------------------------------------------------------ Preface The following symbol is used in this document: [Try it] It is a hypertext link to a web page containing examples of the HTML features under discussion. The reader can if they wish modify the text to try out their own ideas of style and formatting. The best way of using this feature is to open a new window containing this link. Then after trying out the features close the window to continue browsing the original document. In Netscape this is achieved by moving the cursor over the symbol and pressing the left mouse button. This selects a series of options contained in a pop up window. Select the option to start a new window / browser with this link. ----------------------------------------- ------------------------------------------------------------ ----------------------------------------- [Index] Introduction to new HTML tags These WWW (World Wide Web) pages are written using a non standard form of HTML (HyperText Markup Language) used by web browsers developed by the Netscape corporation. It is not yet clear whether other manufacturers will also support these features. However as Netscape have 70%+ of the market this consideration may prove academic. Browsers capable of displaying this information include: * Netscape 2.0 * Netscape 2.0 Gold In describing these new feature of HTML the aim has been to concentrate on the more widely used and useful features. However, in many ways this still remains a personal selection. ----------------------------------------- ------------------------------------------------------------ ----------------------------------------- [Index] Colour The following are some of the formatting tags available in HTML to specify colour in a document. [Index] Specifying a colour by name The formatting tag with the element COLOR="red" is used to change selectively the colour of the text of the document to red. This temporary colour change terminates on the tag. Formatted text HTML markup required * Red* * Red* Green* Blue* Green* Blue* Possible values for a named colour are: black [###], maroon [###], green [###], olive [###], navy [###], purple [###], teal [###], gray [###], silver [###], red [###], lime [###], yellow [###], blue [###], fuchsia [###], aqua [###], white [###]. [Try it] [Index] Specifying a colour by RGB value A general colour is specified in terms of the three primary colours red, blue and green. Each primary colour is defined as a two digit Hexadecimal number that representing the strength of that primary colour. In this specification hexadecimal 00 means 0% of the colour and hexadecimal FF means 100% of the colour. For example, to specify red the hexadecimal number FF0000 is used. In this number: * The first two digits FF define 100% of red * The second two digits 00 define 0% of green * The third two digits 00 define 0% of blue Formatted text HTML markup required * Red* * Red* Green* Blue* Green* Blue* * Yellow* * Yellow* White* Purple* White* Purple* [Try it] [Index] Global colours of the text, links, etc. Additional elements to the tag
allow a user to specify global colouring of the web page. Elements of this tag include: * BGCOLOR= Specifies the background colour of the document. * TEXT= Specifies the colour of the text in the document. * LINK= Specifies the colour of the hypertext links in the document. * ALINK= Specifies the colour of the link when activated by your mouse. * VLINK= Specifies the colour of the visited hypertext links in the document. For example, to create a web page with a background colour of green normal text in red and links in blue is specified with the following elements to the tag The document may also be given a background image. The selected image is tiled across the document and then the text of the document is written over the image(s). It is thus important to choose a background image that will not be too distracting for the reader. The background image is achieved by adding a background attribute to the BODY markup tag. For example: [Try it] Remember, the ability to display the colour depends on the colour depth of the monitor used by the viewer. Many people will only be able to display 256 distinct colours, and some will only have a black and white display. For viewers with a monitor with a limited colour depth other colours will be displayed by dithering. A process which simulates the un-displayable colour, by creating a pattern of dots in colours which when viewed at a distance will fool the eye into seeing them as a single new colour. Unfortunately this reduces the resolution of the displayed area. ----------------------------------------- ------------------------------------------------------------ ----------------------------------------- [Index] Forms A new element to the ----------------------------------------- ------------------------------------------------------------ ----------------------------------------- [Index] Frames A web page may be split into several individual frame windows. Each frame contains the result of accessing an URL. The tags form a container, for URL's which will be displayed in individual windows in a single web browser page. The tags