About HTML |
About HTML
CGI-Perl
Communication
Counters
Guest books
Design Aspects
Education
Forms
Frames
Glossary
Graphics
Hardware
Inspect
Lake Applet
Make Money
Mistakes to avoid
Page Header
Publicise
Rating
Screensize
Send a URL
Software
Sound
Tables
Vivid Backgrounds
Web Page Design
Web Space
HTML documents can display text in LOTS OF DIFFERENTCOLORS - You can choose just about any color you can name anda few more besides. Let your imagination run wild!
To change the text colour use this code:
<font color="red">text you want to make red</font>
You can change the name of the colour or give it as a hexadecimal colour value eg. #ff0000 where three two digit hexadecimal numbers (in this case ff, 00, 00 whow the amount of Red, Green and Blue
to get this size text use:
<font size="-2">You</font>
by using the <font size=[value]>text you use</font>. However this is now considered an 'out of date' method and is now being replaced with 'styles' instead.
To get this effect you need to put the following code
before the </header> tag:
<style type="text/css">
<!--
.small {font-size: small}
.x-small {font-size: x-small; }
.xx-small {font-size: xx-small}
.medium {font-size: medium}
.large {font-size: large}
.x-large {font-size: x-large}
.xx-large {font-size: xx-large}
.giant400 {font-size: 400%}
-->
</style>
Once done you change the text size using:
<span class="xx-small">Here</span> <span class="x-small">is</span> <span class="small">the</span> <span class="medium">same</span>
Text
can be written in Bold, Italic and
be underlined and of course you
can combine these effects
Text
may be left justified
or left aligned
Fully
justifying text is a little more tricky in HTML
since the window in which it is displayed
can alter in size. The only way to do it
is to create it in a table of fixed width by
hand or, much easier, by using a style
sheet as in this example. |
Style sheets can allow you a great deal of control over text
You can even turn text upside down
You
can make text if
you wish to draw attention to something but use this
effect sparingly - it gets very annoying and is only
normally available in Netscape's browser unless it
has been created using a style sheet.
You can use superscript text as in E=mc2 or
subscript text as in H2O
And if you really want to do it you can use strikeout.
I use strikeout to indicate where I have made a mistaek
mistake.
There are also a variety of text effects which involve
using the language Java to manipulate text.
This is an example
.
But
be warned, the viewer may not have the same fonts available
on their computer and it may look like this:
You can display your
text using different
font styles as
in this example
^ Algerian ^
^ Britannic
Bold ^
^Brushscript^ ^EngrvrsOldEnglish^