HTML
|
JavaScript
Alignment
Basics
Character Codes
Colors
CSS
DIVS
Forms
Frames
Links
Lists and Bullets
Meta Tags
Multimedia
Pictures
Spacing
Tables
Text
Adding Text
Align Text
Marquee
Text Color
Text Font
Text Headers
Text Links
Text Size
Text Spacing
Text Styles
Text Size
236
Defining Text Size
Description
To change the size, you need to put in the size tag which looks like <FONT SIZE="#">. The starting tag is <FONT SIZE="#"> and the closing tag is </FONT>. The # symbol is replaced by the size of text you want, which ranges 1 through 7. Here is an example of the size tag.
Code
<FONT SIZE= 6"> Hello World!</FONT>
Output
Hello World!
Practice
<FONT SIZE= 6"> Hello World!</FONT>
Size Options
Description
As you may have seen from the example above, the size number in HTML does not relate to the normal font size in a normal text editor. The font sizes in HTML range from 1 to 7. Here is an example of all the different sizes.
Code
<font size="1">Size 1</font><br>
<font size="2">Size 2</font><br>
<font size="3">Size 3</font><br>
<font size="4">Size 4</font><br>
<font size="5">Size 5</font><br>
<font size="6">Size 6</font><br>
<font size="7">Size 7</font>
Output
Size 1
Size 2
Size 3
Size 4
Size 5
Size 6
Size 7
Practice
<font size="1">Size 1</font><br> <font size="2">Size 2</font><br> <font size="3">Size 3</font><br> <font size="4">Size 4</font><br> <font size="5">Size 5</font><br> <font size="6">Size 6</font><br> <font size="7">Size 7</font>
Font size
Description
New font size
Code
<font size="6">Size 6</font><br>
Output
Size 6
Practice
<font size="6">Size 6</font><br>
Advertisements