Basefont

Updated: 04/26/2017 by Computer Hope

basefontThe basefont or <basefont> tag is an HTML tag that allows the default font family, font size, or font color to be set for an HTML page. The tag was deprecated in HTML 4 and is no longer valid in HTML 5. CSS is now the prefered method of setting the default font family.

The tag could be used to set the default font family, size, and color of a web page, as shown below.

<basefont face="Arial" color="#000000" size="2">

When used, this tag should be placed in the head tag (<head> and </head>), found near the beginning of the HTML code. Other supported attributes include class, dir, id, lang, style, and title.

Font, HTML, Typography terms