![]() |
![]() |
General discussion of site Learning HTML Planning and building Going live HTML editors Web development resources Ongoing skills development Web databases |
Learning HTML Fonts
This section looks at: Font size can be changed by using the <FONT SIZE> tag. Font sizes can range from 1 through 7:
These sizes are relative, not absolute. "1" will always be the smallest font, and "7" the largest, but exact size will depend on the browser and on the user's settings. The font most commonly used by default is Times New Roman. Font face can be changed by using the <FONT FACE> tag. For example:
Bear in mind that older browsers such as Netscape 2 do not display fonts other than the default, and that even newer browsers can only display fonts already on the user's computer. Font face can be controlled by using the <FONT COLOR> tag with the desired hexadecimal value:
Note the hash sign (#) before the hexadecimal value and the American spelling "color". Color Center lets you experiment with coloured text and backgrounds and lists their hexadecimal values: http://www.hidaho.com/colorcenter/cc.html The following example shows how to control font size, face and colour at the same time:
The <FONT> element is "deprecated" in the HTML 4 specification,
which means that it is likely to be dropped from future versions of HTML. Consider using style
sheets to achieve control over font colour, face etc. See the Yenza! page
on further Web development resources for links to Cascading Style Sheet
resources:
|
|||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||