Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

HTML basefont Tag

HTML basefont Tag with html tutorial, tags, anchor, img, div, entity, textarea, marquee, p tag, heading tag, h1, h2, table, formatting, attribute, elements, ol, ul, Input Types, block element tag, inline element tag, html tags, phrase tag, head, body, form, lists, symbols etc.

<< Back to HTML

HTML <basefont> tag

(Not Supported in HTML5)

HTML <basefont> 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 <basefont> 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.


<basefont color="blue" size="5" face="arial">

In HTML the closing tag </basefont> is not required but in XHTML the end tag is required.

Following are some specifications about the <base> tag

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


<!DOCTYPE html>
<title>Basefont tag</title>
 <basefont color="blue" size="5" face="arial">
<h2>Example of Basefont tag</h2>
<p>The basefornt tag is not supported in HTML5 use CSS to style the document</p>
Test it Now

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

<!DOCTYPE html>
 	    font-size: 20px;
 	     color: #67dfee;
 	    font-family: Helvetica;
<h2>CSS to Style the document</h2>
<p>This is Paragraph</p>
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

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
Next TopicHTML bdi Tag

Related Links:

Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf