
HTML>HTML Formatting>Font Size Attribute
As you probably guessed the font size tag attribute, <font size=#>, specifies the size of your text. The </font> tag returns the font size to the default size set by your operating system.
The font size attribute allows you to vary font sizes, not just from page to page, but word to word.The default font size = 3, but you can alter it by inserting a specific numeral, such as ,<font size=5>
Example
Try it out for yourself!
Examine the HTML code below. Cut and paste (Ctrl c + Ctrl v) the following HTML code into the form window below and press the check it out button to see the resulting webpage.
<html>
<head><title>HTML Font Sizes</title></head>
<body>
<h2>HTML Font Size Tag Attribute</h2>
<font size=1><p>This is font size 1.</p></font>
<font size=2><p>This is font size 2.</p></font>
<font size=3><p>This is font size 3.</p></font>
<font size=4><p>This is font size 4.</p></font>
<font size=5><p>This is font size 5.</p></font>
<font size=6><p>This is font size 6.</p></font>
<font size=7><p>This is font size 7.</p></font>
</body>
</html>
Creating your own webpage
Follow these simple steps to create your own webpage and to view your created webpage in your browser.