English
German

HTML Font

HTML Font

The <font> tag is used to add text style, size, and color to the text on your site. Use the size, color, and face attributes to customize your fonts. Use a <basefont> tag to set all of your text to the same size, face, and color.
The font and basefont tags are deprecated and should not be used. Instead, use css styles to manipulate your font. See our CSS Tutorial for more information.


HTML Font Size

Set the font size of your text and change the size as ypu like. The range of accepted values is from 1(smallest) to 7(largest).The default size of a font is 3.

Font size example:

<p>
<font size="5">font  size 5</font>
</p>
 

Output

font size 5


HTML Font Color

Change the font color and look your style web page . Set the color of your font with color.

Color Example:


<font color="#660000">font color is hexcolor #660000</font>
<br />
<font color="green">This text is green text</font>
 

Output
font color is hexcolor #660000
This text is green text

Font Face

Choose a different font face using any font you have installed. Be aware that if the user viewing the page doesn't have the font installed, they will not be able to see it. Instead they will default to Times New Roman. An option is to choose a few that are similar in appearance

Font Face Example:

<p>
<font face="Bookman Old Style, Book Antiqua, Garamond">
Example for font face font</font>
</p>

Output

Example for font face font


Basefont

With the basefont tag you will be able to set the default font for your web page. We highly recommend specifying a basefont if you plan on using any font with HTML. Below is the correct way to set your basefont.


HTML Tutorial,HTML Font, HTML Font example, learn HTML Font,explain example HTML Font online free training HTML Tutorial, HTML Tutorial example, learn HTML Font, online tutorial, download tutorial, HTML Tutorial books, HTML Tutorial videos, live videos HTML Tutorial, learn HTML Tutorial, HTML Tutorial topic HTML Font, live training HTML Tutorial, download free tutorial