HTML tag

(Not Supported in HTML5)

HTML tag was used to specify the default value of font-size, color, and font-family for all content written within an HTML document.

Note: The was deprecated in HTML 4 and completely removed from HTML5 so do not use this tag, instead of it you can use CSS to style the document.


In HTML the closing tag is not required but in XHTML the end tag is required.

Following are some specifications about the tag

Display None (empty tag)
Start tag/End tag Only start-tag
Usage Font styling


Test it Now

Right way is to Use CSS to set the base font:

Test it Now


Tag specific attributes:

Attribute Value Description
color color Specify the default color of all text within an HTML document. (Not Supported in HTML5)
face font-family Specify the default font face for the text in the document. (Not Supported in HTML5)
size number Specify the size of the text. (Not Supported in HTML5)

Supporting Browsers

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
No No No No No
Next TopicHTML bdi Tag

Hot Tutorials

Contact US

HTML basefont Tag