Font tag in html code

By using font tag we can control the display of fonts in a web page. Font tag is very commonly used tag in web page design. We will discuss some basic font tags and its uses in developing sites.

Using the font tag we can manage the size, color and face of the font. Here we can specify which font to be used for displaying the text. The face of the font can be Times New Roman or it can be Verdana font. What ever we specify the face of the font tag , that font must be available with the client computer. Otherwise default font will be displayed. So it is advisable to use common fonts and if you have any special requirement then create one image with the text and style of font you use and then display it as an image.

Font Size:

Font tag will have one starting and ending tag. The text between the staring and ending of the tags will follow the attributes set inside the tag. We can define the size of the font by using size attribute. Size can be from 1 to 7. Here is the basic font tag with size.

<font size=1>font size is 1</font> font size is 1
<font size="2">font size is 2</font> font size is 2
<font size="3">font size is 3</font> font size is 3
<font size="4">font size is 4</font> font size is 4
<font size="5">font size is 5</font> font size is 5
<font size="6">font size is 6</font> font size is 6
<font size="7">font size is 7</font> font size is 7

Subscribe to our mailing list

* indicates required
Subscribe to plus2net
Your Rating


Post Comment This is for short comments only. Use the forum for more discussions.

Subscribe to our mailing list

* indicates required
Subscribe to plus2net
HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us
©2000-2018 All rights reserved worldwide Privacy Policy Disclaimer