Site hosted by Angelfire.com: Build your free website today!
#

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.

HTML Block Quotes TagHTML Block Quotes TagHTML Font Colour TagHTML Font Colour Tag

 

 

HTML OverviewHTML RequirementsHTML TagsHTML Document StructureViewing HTML Source CodeHTML Heading TagHTML Paragraph TagHTML Line Break TagHTML Comment TagHTML Horizontal Rule TagHTML Block Quote TagsHTML Font Colour TagHTML Font Type TagHTML Teletype TagHTML Alignment TagHTML Ordered ListsHTML Unordered ListsHTML Definition ListsHTML Anchored Link TagsHTML Mailto Link TagsHTML Image TagsLets create a webpageTake the HTML QuizHTML Quick Reference GuidePublishing your Website