HTML font

You can use <font> tag to add style to any text of our HTML file. <font> tag attributes can increase the font size, change the font face and font color.

HTML font attributes

class, color, dir, face, ice:repeating, id, lang, pointsize, size, style, title.

Font Size

You can change the font size with the use of ‘size’ attribute.You can set the size value 1 to 7. 1 is smallest font size and 7 is the largest font size.

<font size="4">Your Content Goes Here</font>

Browser Display:


Your Content Goes Here

Font Color

You can add desired color to any text in your HTML file with the use of ‘color’ attribute. You can put color name or hexadecimal code in the ‘color’ attribute (e.g. color=”RED” or color=”#FF0000”).

<font color="red">Your Content Goes Here</font> <br/>
<font color="#FF0000">Your Content Goes Here</font> <br/>

Browser Display:


Your Content Goes Here

Font Face

You can the the font face with the use of ‘face’ attribute. Always remember that you can only use the system font, if you are using a font which is not installed in your system then you can not see the font face effect.

<font face="Courier New, Courier, monospace">Your Content Goes Here</font>

Browser Display:


Your Content Goes Here
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

This entry was posted in HTML Styles. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>