SQL PHP HTML JavaScript articles and free code
 
 

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


Next we will see how to manage the color of the text using font tag

Further readings
How to change font type of the text in html using font tag
How to use different color for different part of the text using font tag




Discuss this tutorial at forum

List of HTML Tutorials

 

Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.

Scripts
PHP
JavaScript
List of HTML Tutorial
HTML Tags
Color Chart
HTML Calendar
Tags on web page
Web Design
Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.