|
Open Notepad and type or cut and paste in this basic web page HTML.
Hypertext Tags (You're it!)
The things that affect the format of the text are Hypertext tags. These are short commands
placed within less than "<" and greater than ">" symbols, eg: In the sections which follow we will introduce some of the tags which can be used for simple text formatting.
Basic Formatting (Easy stuff) To get your text formatted correctly for the notice boards you need only know a few tags. These are: <P> - New paragraph <BR> - Line Break <B> - Start Bold text </B> - End Bold Text <I> - Start Italic Text </I> - End Italic Text For example to make a piece of text bold you would type:
Special Characters There are numerous escaped characters, but these are the most important codes to know: & - Ampersand (&) < - A less-than sign (<) > - A greater-than sign (>) ® - A registered trademark sign (®) © - A copyright sign (©) Ý - A Sword sign (Ý) More characters HERE
AllChars provides a quick, easy-to-remember way of creating accents like é Ü ç î æ and special characters like ƒ ² ‰ © £ ± ß ° 1/2 ¿ « » ™ „ in most Windows programs.
Colours and Sizes (The Pretty Stuff!) Once you have mastered these simple tags you can add a few more which might be useful: <font SIZE=+1> </font> - Change the FONT size <font COLOR=#FF0000> </font> - Change the FONT colour (see below) <UL> </UL> - Indented text (A list) <center> </center> - Centered text <LI> - A bullet These tags introduce a few new concepts, specifically colours and font sizes. Font Sizes are expressed as a number from 1 to 7. In Netscape the standard size is three. You can either set the font size to something + or - the current size, or to an absolute value. Therefore you could do any of the following: The font sizes look like the following: Font colours are slightly more difficult, and will not be displayed on anything less than Netscape 2.0 anyway. The colour is specified as a # (hash) followed by three pairs of Hexadecimal digits representing RED, BLUE and GREEN respectively. Each pair runs from 00 to FF (Hex digits are base 16, i.e. 0 1 2 3 4 5 6 7 8 9 A B C D E F). Therefore FF0000 is bright red, 00FF00 is bright green and 0000FF is bright blue. Here are a few examples:
More Colours HERE.
Links and Images (Getting Fancy) Finally, you can try the most exciting part of HTML, adding images and hypertext links to other documents. To do this you include a tag that specifies the URL (Uniform Resource Locator) of the target document. Think of the URL as the address of the document. You can copy it from a link in Netscape, or make it yourself. The two most common kinds of URL are:
More mailto options HERE
To add a hypertext link to another page you specify that the tag will
be a Hypertext reference (HREF), cite the URL of the document to link to and
then indicate what you would like the name of the link to be : e.g. produces:- Kate's Page If it is to a file saved in the same folder/directory as your .htm file, you just need
which produces:- Link to file_name.htm
Images are typically handled in the same way; using the IMG tag instead of HREF, and only citing the URL of the image:
e.g.
Kate Test GIF.
|