|
Changing the Font Size |
|
Headline tag |
| Header or "heading" tags are tags that can be used to create a "logical structure" for your web page titles. The H1 tag is for the topmost header, and will usually cause text to be displayed in a large, bold typeface. The H2 tag is for the next level down, and the text will be slightly smaller than the H1 marked text and so on down to H6. |
| <h1>Headline 1</h1> |
| <h2>Headline 2</h2> |
| <h3>Headline 3</h3> |
| <h4>Headline 4</h4> |
| <h5>Headline 5</h5> |
| <h6>Headline 6</h6> |
|
Headline 1 |
Headline 2 |
Headline 3 |
Headline 4 |
Headline 5 |
Headline 6 |
| There are 6 levels of headline tag, from H1 to H6. As you seen, the biggest one is H1 and the smallest one is H6. |
|
| Absolute font size |
| Another way to size text is to use the FONT SIZE tag. |
| <font size=7>Font Size 7</font> |
| <font size=6>Font Size 6</font> |
| <font size=5>Font Size 5</font> |
| <font size=4>Font Size 4</font> |
| <font size=3>Font Size 3</font> |
| <font size=2>Font Size 2</font> |
| <font size=1>Font Size 1</font> |
|
| Font Size 7 |
| Font Size 6 |
| Font Size 5 |
| Font Size 4 |
| Font Size 3 |
| Font Size 2 |
| Font Size 1 |
| Font sizes are defined in a range from 1 to 7 (the default base value, or basefont, is 3). You can also specify a change in font size by using this tag. |
| Note: You can specify the font size relative to the current size (using + or -) or as an absolute size from 1 to 7. |
|
| Setting the basefont |
| This tag is used to set the base-level font size or characteristics for the entire document. In this case, the basefont size is set to 5. |
| <basefont size=5> |
| Testing |
| <font size=+1>Testing</font> |
| <font size=+2>Testing</font> |
| <font size=-1>Testing</font> |
| <font size=-2>Testing</font> |
| </body> |
| </html> |
|
| Testing |
| Testing |
| Testing |
| Testing |
| Testing |
| The size of the first line is the default(basefont) size 5 |
| The size of the second line is 5+1= 6 |
| The size of the third line is 5+2= 7 |
| The size of the fourth line is 5-1= 4 |
| The size of the fifth line is 5-2= 3 |
| Note: The default value of basefont size is 3. You can set this value from 1 to 7. |
| A few things you should know when using <basefont> tag: |
| You should always put the tag at the beginning of the document body |
| If basefont size is set to 7, then <font size=+2> will not work, as 7 is the largest possible font size.
|
| In Netscape Navigator 3 and 4, the tag only affects text outside a table.The text inside a table is unaffected.
|
|