IT. Expert System.

HTML

font


UNSUPPORTED
in HTML5

DEPRECATED
in HTML4.01

Tag Description

The font tag is used to set the font face, font size, and font color of text.

This tag has the form:

<font color="{ rgb(x,x,x) | #xxxxxx | colorname }" face="font_family" size="number">
</font>

HTML5 and HTML4.01 Differences

Not supported in HTML5.

Attributes

Attribute Value Description
color rgb(x,x,x)
#xxxxxx
colorname
Specifies the color of text
HTML4: deprecated in html4.01
HTML5: not supported in html5
face font_family Specifies the font of text
HTML4: deprecated in html4.01
HTML5: not supported in html5
size number Specifies the size of text
HTML4: deprecated in html4.01
HTML5: not supported in html5

Global Attributes

Attribute Value Description
class classname Sets the classname of the element
dir rtl
ltr
Sets the text direction for the content of the element
id id Sets a unique id for the element
lang lang_code Sets the language code for the content of the element
style style_def Sets the inline style of the element
title text Sets extra information about the element

Event Attributes

None supported.

Examples

The following example shows the basic use of this tag:

<font size="2" color="blue">
  color: blue, size: 2
</font>
<font size="3" color="red">
  color: red, size: 3
</font>
<font size="4" face="times"
  color="green">
  color: green, size: 4, 
    font: times
</font>

This produces the following result:

color: blue, size: 2
color: red, size: 3
color: green, size: 4, font: times

Browser Support

Chrome Firefox IE Safari Opera

Doctype Declaration Support

The following table lists the doctype declarations this element may appear in:

HTML4.01 / XHTML1.0 XHTML 1.1 HTML 5
Traditional Strict Frameset

Miscellaneous Information

Defined In: HTML 3.2
Empty Tag: No


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 166 / . Delta: 0.02077 с