HTMLforall

  HTML | PHP | Forum

HTML <basefont> tag

basefont is deprecated in HTML 4.01 in favor of Style Sheets

Syntax

<basefont>

Definition and Usage

The BASEFONT element defines a new reference for the base font. 

Optional Attributes

Attribute Value Description
color #rrggbb colorvalue or
colorname
Specify the text color.
face font name Specify the font to use.
size default_text_size Font size for font elements (from 1 to 6).

Standard Attributes

id, class, title, style, dir, lang, xml:lang

For a full description, go to Standard Attributes.

Example 

Source Output
<P><font size=1>size=1</font>
<font size=2>size=2</font>
<font size=3>size=3</font>
<font size=4>size=4</font>
<font size=5>size=5</font>
<font size=6>size=6</font>
<font size=7>size=7</font>
with basefont

<basefont size="4">

<P><font size=-3>size=-3</font>
<font size=-2>size=-2</font>
<font size=-1>size=-1</font>
<font size=0>size=0</font>
<font size=1>size=1</font>
<font size=2>size=2</font>
<font size=3>size=3</font>

 

size=1 size=2 size=3 size=4 size=5 size=6 size=7

size=-3 size=-2 size=-1 size=+0 size=+1 size=+2 size=+3

Home

Learn HTML
HTML Tutorial

HTML Reference
HTML by function
HTML by Alphabet

HTML events
HTML attributes
HTML color names

<!--...-->
<!DOCTYPE> 
<a>
<abbr>
<acronym>
<address>
<applet>
<area>
<b>
<base>
<basefont>
<bdo>
<big>
<blockquote>
<body>
<br>
<button>
<caption>
<center>
<cite>
<code>
<col>
<colgroup>
<dd>
<del>
<dfn>
<dir>
<div>
<dl>
<dt>
<em>
<fieldset>
<font>
<form>
<frame>
<frameset>
<h1> to <h6>
<head>
<hr>
<html>
<i>
<iframe>
<img>
<input>
<ins>
<isindex>
<kbd>
<label>
<legend>
<li>
<link>
<map>
<menu>
<meta>
<noframes>
<noscript>
<object>
<ol>
<optgroup>
<option>
<p>
<param>
<pre>
<q>
<s>
<samp>
<script>
<select>
<small>
<span>
<strike>
<strong>
<style>
<sub>
<sup>
<table>
<tbody>
<td>
<textarea>
<tfoot>
<th>
<thead>
<title>
<tr>
<tt>
<u>
<ul>
<var>

 

Copyright 2005-8 Sunilcare.  All Rights Reserved.
Comments or suggestions? Contact us.About us