<STRONG> Stronger emphasis (Usually bold)
<B> Boldface where available (Browser may render
line in another manner if boldface is notpossible)
<I> Italic (may be rendered as started in some cases)
<U> Underline (Maybe rendered as started in some cases)
<BIG> Bigger text
<SMALL> Smaller text
<SUB> Subscripted text
<SUP> Superscripted text
<BLINK> Flashing text
Font Size and Color
<FONT>—</FONT> The <FONT> tag used to control the appearance
of the text it encloses.
SIZE = Value Size of the font in points, it can be
absolute or relative.
Specifying SIZE=5 sets the font size to
5 points Specifying SIZE=+5 set the
font size 5 points larger tha default tag.
COLOR = Colour The colour of the enclosed text.
FACE= List The font faces of the text. Multiple font face
can be specified, separated by commas.
The browser
will try to render the text in the order specified
by the list.
In HTML, various properties of text can be changed using the <FONT> tag. Font size and colour can be modified using the appropriate attribute of this tag.
SIZE: Changes Size.
COLOR: Changes the colour.
Font Size attribute
<FONT SIZE = n >
Font size can be changed in two different ways.
The size attribute takes a number from 1 to 7 as its value with 1 as the smallest
and 3 the default.
Value of n 1 and 2 for Small Size
Value of n 3 for Normal Size
Value of n 4 to 7 for Large Size.
Also, you can use relative values, +n and -n, for increasing or decreasing font
size relative to the current size. For increasing relative font size use values +1 to +6
and for decreasing use -1 to -6.
<FONT SIZE = +n > or <FONT SIZE = -n>
Relative changes in font size with <FONT SIZE = + 2> or <FONT SIZE = - 2>
increment or decrement the font size by 2 point scale relative to the size specified in the
nearest.
Example
<HTML>
<HEAD>
<TITLE>Example 5.06</TITLE>
</HEAD>
<BODY>
<H1>Font size and colour</H1>
<FONT SIZE=4 COLOR=”#0000FF”>
<P>This font is in Blue</FONT>
<FONT SIZE=6>
<P>This font is in size 6</FONT>
<FONT SIZE=3 COLOR=”black”>
<P>This font is in size 3 and Black color</
FONT>
</BODY>
</HTML>
<HEAD>
<TITLE>Example 5.06</TITLE>
</HEAD>
<BODY>
<H1>Font size and colour</H1>
<FONT SIZE=4 COLOR=”#0000FF”>
<P>This font is in Blue</FONT>
<FONT SIZE=6>
<P>This font is in size 6</FONT>
<FONT SIZE=3 COLOR=”black”>
<P>This font is in size 3 and Black color</
FONT>
</BODY>
</HTML>
Changing size and colour of fonts
No comments:
Post a Comment