|
|
Introducton to Web Design
|
|
|
|
|
- The following table describes the most common tags used for sizing
text:
| Opening Tag |
Closing Tag |
Description |
| <H*> |
</H*> |
Creates heading text of varying sizes (from 1-6). To choose a
heading level, you replace the * with a number from 1 to 6. For
example, a heading level one tag would look like <H1>heading Text
level One</H1>. Note that heading tags imbed a line break and
can take an optional alignment parameter of LEFT, RIGHT, or CENTER |
| <FONT SIZE = "*"> |
</FONT> |
You may specify an absolute height such as <FONT SIZE = "4">
or you may specify a size relative to the basefont using the increment
notation such as <FONT SIZE = "+2">. |
| <BIG> |
</BIG> |
Like the <FONT> tag, this tag enlarges the base font size. |
- The following HTML code shows how you might size text.
<HTML>
<HEAD>
<TITLE>Sizing Text</TITLE>
</HEAD>
<BODY>
<H1>H1</H1>
<H2>H2</H2>
<H3>H3</H3>
<H4>H4</H4>
<H5>H5</H5>
<H6>H6</H6>
<FONT SIZE = "1">Font Size = 1</FONT>
<BR><FONT SIZE = "7">Font Size = 7</FONT>
<BR><FONT> Font size = +0</FONT>
<BR><FONT SIZE = "+2">Font Size = +2</FONT>
<P>
<BIG>big text</BIG>
</BODY>
</HTML>
- The following image shows what various font sizes look like...
- Notice in particular that the heading tags (H*) automatically
insert a line break after they are done whereas the FONT tags do not.
Previous Page |
Next Page
|
|