Basefont

Updated: 04/26/2017 by Computer Hope
Marquee font example

The basefont or <basefont> tag is an HTML (hypertext markup language) 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 (cascading style sheets) is now the preferred 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