Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML tag

HTML The tag - Not supported in HTML5

Example

Specifies the default color and size of text on the page:

This is a heading

This is a paragraph.

Try it »


Browser support

Internet Explorer Firefox Opera Google Chrome Safari

Only IE 9 and earlier versions of IE browsers support the tag. You should avoid using this tag.


Tag Definition and Usage Notes

HTML5 does not support tag. Please use CSS instead.

In HTML 4.01, The element is deprecated.

The tag defines the default color, size, and font of all text in the document.

Tips and Notes

**Tip:** Use CSS to specify thedefault color, size, and font for the text in the document.


Differences between HTML 4.01 and HTML5

HTML5 does not support The tag, deprecated in HTML 4.01 tag.


Optional Attributes

property Value Description
color color Not supported in HTML5. Deprecated in HTML 4.01. Specifies the default color of text in the document.
face font_family Not supported in HTML5. Deprecated in HTML 4.01. Specifies the default font of text in the document.
size number Not supported in HTML5. Deprecated in HTML 4.01. Specifies the default size of text in the document.

Standard Attributes

In HTML 4.01, The tag supports the following standard attributes:

property Value Description
class classname Specifies the class name of an element
dir rtl
ltr Specifies the text direction of the content in an element
id id Specifies the unique id of an element
lang language_code Specifies the language code of the content in an element
style style_definition Specifies the inline style of an element
title text Specifies extra information about an element

For a complete description, please visitStandard Attributes.


Event attribute

In HTML 4.01, The tag does not support any event attributes.

For a complete description, please visitEvent attribute.