::
::
html text styles 2

Font Size
To change the font size, you use <font size="3">Size 3 text here</font>. Using that would give us size 3 text. To change the size, just change the 3 in the code to another number (between 1 and 7). These are the text sizes:
You can also use 'points' to change text size. To do this just use "pt" at the end of a number. (Points is the size generally used on your computer).
For example, to get 14 point text, use <font size="14pt">14 point text here</font>
You can even set the size using pixels, just use px at the end of the number.

Text Colour
To change text colour, you would use:
<font color="#000000">Your text goes here</font>
Where #000000 is the Hex HTML colour. Have a look here for a list of some colours.

Font Face
The code to change the font face is:
<font face="arial">Font using Arial face here</font>
Arial is the face used in this code. To change it, simply put the name of another font in there. However, remember that if someone does not have that font on their computer, they will only see their default font! Almost all people (using Windows and Mac OS) have the following fonts, so I suggest sticking to these:
Times New Roman, Arial (<-- these 2 are the most common), Verdana, Georgia, Comic Sans MS, Trebuchet MS, Impact, Tahoma.
It is also advisable to set more than one font, so that if your first font is not installed on a visitor's computer, they will see the next one. The code for this is:
<font face="verdana,tahoma,arial">Text here</font>

Combining the Styles
Using more than one of the above styles in one code would look something like this:
<font face="arial" color="#000000" size="2">Text here</font>
Using these styles, as well as making it bold, would look like:
<b><font face="arial" color="#000000" size="2">Text here</font></b>

Back To Tutorials

HOME
FOR YOU
TUTORIALS
SITE STUFF

New Stuff
» 6 iPod pixels
» Button Maker
» 1 Welcome Sign
» 1 Blend
» Neopets HTML Tricks

Affiliates

Topsites

Smiley Helper Topsite
The IceCaves.net Topsites
Sketched Neo Topsites

unique visitors since 1 Sep 05.

Fly Away to a place where no one can hear you cry...