HTML font size

Font color html you can define using CSS attributes. Most novice web developers and site owners are faced with the question of changing the size and color of the font when working with the HTML code.

To change the fonts is tag <font> with the attribute face. To specify the fonts you can type (e.g., monospace), and title (Tahoma, Arial, etc.). It should be noted that the choice of font, it is best to specify several options in order to avoid a situation when the user’s browser does not support some of them. Recommended to score at least one of the known and common fonts for example Arial, which is supported by all browsers. In addition, it is not necessary to use on one page more than 2-3 different fonts, it can greatly affect the appearance of the page and significantly degrade the organization and its structure.

In order to change the font size on the HTML page, you use the size attribute. Just want to note that the larger the font you use, the better will be perceived text users. But, at the same time, the fine print allows it to fit within one page large amounts of information. Entirely change the font size throughout the page, you can use the attribute with the tag <basefont>. To change the font size of the individual fragment, the size attribute, used with the <font>tag.

Example html font size

Example used single text html size:

<span style=”font-size: 18pt;”>TEXT</span>

Example used html font size on all site:
Add or find and change in css file your themes line “font-size”


Use any value instead 18.

How to change font color in html?

And to give greater appeal to a registration page, using fonts of different colors. In order to do this, you must use the text attribute with the <body> tag. It is suitable to change the font throughout the page, but to change a single piece of text using the tag <font> with the attribute color.

Leave a Comment

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