HTML FONTS

HTML FONTS:

• Fonts play an important role in making a website.
• HTML <font> tag used toad style, size, & colour to the text on your website.
• You can use a <basefont> tag to set all of your text to the same size, face, &colour.

NOTES:
The font & basefont tags are deprecated & it is supposed to be removed in a future
version of HTML.
So they should not use rather, it’s suggested to use CSS styles to manipulate your fonts.
Set Font size:
• You can set content font size using size attributes.
• The accepted value is 1 to 7.
• Default size is 3.
• Here size 1 is smallest size & 7 is largest size.
• You can also specify the size +n or -n.

Example:
<!DOCTYPE html>
<html>
<head>
<title>Font size</title>
</head>
<body>
<font size="-1">Font Size="-1"</font><br/>
<font size="1">Font Size="1"</font><br/>
<font size="2">Font Size="2"</font><br/>
<font size="3">Font Size="3"</font><br/>
<font size="4">Font Size="4"</font><br/>
<font size="5">Font Size="5"</font><br/>
<font size="6">Font Size="6"</font><br/>
<font size="7">Font Size="7"</font><br/>
</body>
</html>
OUTPUT:


Comments

Popular posts from this blog

Set Font Colour

HTML ORDERED LISTS

Colspan & Rowspan Attributes on HTML Table