Different Worlds: An Introduction to HTML

Appendix A: Example Files

FILE14.HTML : Relative font sizes

Copy and paste, or type, the HTML code shown below into your text editor, and save it as "file14.html":

<html>
<head>
<title>(file14.html) Relative font sizes</title>
</head>
<body bgcolor="#ffffff" text="#000080">
<p>This is the default font size, usually "3". The following font sizes are relative to this, so that "+3" means "3 sizes bigger than the default font size".</p>
<p><font size="+4">This is font size +4</font></p>
<p><font size="+3">This is font size +3</font></p>
<p><font size="+2">This is font size +2</font></p>
<p><font size="+1">This is font size +1</font></p>
<p><font size="-1">This is font size -1</font></p>
<p><font size="-2">This is font size -2</font></p>
</body>
</html>

Alternatively, this link leads to a copy of this file, already created for you.

Return to the tutorial or return to the list of example files.


Valid HTML 4.01

http://www.users.zetnet.co.uk/dms/htmlguide/app-a14.html
© 1998-2001 Donna Smillie <dms@zetnet.co.uk>