HTML - Font and Basefont

·

Font Size

Set the size of your font with size. The range of accepted values is from 1(smallest) to 7(largest).The default size of a font is 3.

HTML Code:

<p>
<font size="5">Here is a size 5 font</font>
</p>

Font Size:

Here is a size 5 font.

Font Color

Set the color of your font with color.

HTML Code:

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

<font color="red">This text is red</font>

Font Color:

This text is hexcolor #990000
This text is red

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.

HTML Code:

<p>
<font face="Bookman Old Style, Book Antiqua, Garamond">This paragraph
has had its font...</font>
</p>

Font Face:

This paragraph has had its font formatted by the font tag!

Basefont - Set a Solid Base

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 Code:

<html>
<body>

<basefont size="2" color="green">

<p>This paragraph has had its font...</p>
<p>This paragraph has had its font...</p>
<p>This paragraph has had its font...</p>

</basefont>

</body>
</html>

Base Font:

This paragraph has had its font formatted by the basefont tag!
This paragraph has had its font formatted by the basefont tag!
This paragraph has had its font formatted by the basefont tag!
However, the use of basefont is deprecated, which means it may not be supported sometime in the future. The perfectly correct way to change your sites basefont is to set it with CSS. Check out our CSS Tutorial for more information.

Attribute Review

Attributes:






Attribute="Value"Description
size="Num. Value 1-7"Size of your text, 7 is biggest
color="rgb,name,or hexidecimal"Change font color
face="name of font"Change the font type

Beautiful First Letter Style

Customize your fonts to achieve any of your desired looks.

HTML Code:

<p><font size="7" face="Georgia, Arial" color="maroon">C</font>ustomize
your font to achieve a desired look.</p>

Beauty:

Customize your font to achieve a desired look.

Attributes HTML Basic Structure HTML Page Basic Table Tags Basic Text - Font Tags Binary Color Names HTML Color Values HTML Colors HTML Control Characters Conversion Table - Decimal Creating an HTML Page Elements HTML Entities HTML FONT COLOR in HTML FONT FACES in HTML FONT HEADERS in HTML FONT HIDING TEXT/TAGS in HTML FONT LOGICAL STYLES in HTML FONT PHYSICAL STYLES in HTML FONT SIZES in HTML Forms HTML Frames HTML Getting Started HTML head HTML Headings HTML Hexadecimal Horizontal Rule Examples HTML - Bold HTML - Code HTML - Div Element(s) HTML - Font and Basefont HTML - Italic HTML - Layout HTML - Strikethrough HTML -Getting Started HTML / XHTML Standard Event Attributes HTML 4.0 HTML Background HTML Basic HTML Basic - 4 Examples HTML codes HTML Codes - Characters and symbols HTML coding html color codes HTML Elements HTML Fonts HTML Tutorial List Item HTML Codes Form Input HTML Document Javascript Codes Color Code Organizing HTML HTML format HTML Introduction HTML Line Breaks HTML Marquees HTML Ordered HTML Preformatting HTML Reference HTML Style HTML Summary HTML syntax HTML Table Tags Examples II HTML Tag HTML Tags Chart HTML Tags You Really Should Know html tutorial HTML Tutorials HTML Unordered HTML URL Encode HTML URLs HTML valid HTML Webserver Image BORDERS in HTML Image FIXED BACKGROUND in HTML Image HEIGHT WIDTH in HTML Image HSPACE in HTML Image LINKED in HTML Image Map in HTML Images HTML Links HTML Lists HTML Marquee Basic Marquee Code Marquee Codes marquee right now Marquee Status Bar Marquee Tag Examples Marquee tag in html Marquee Tag of HTML marquee tag scrolling text Marquee Title Meta HTML Octal Paragraphs HTML Quick List HTML Scripts HTML Sound Tag Special Characters Struts HTML Tags Styles HTML Tables HTML Text Formatting HTML

What is HTML

free counters