HTML Basefont Tag

(Not Supported in HTML5) HTML <basefont> Tag was wont to specify the default value of font-size, color, and font-family for all content written within an HTML document. Note:- The <basefont>…

1 min read

(Not Supported in HTML5)

HTML <basefont> Tag was wont 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 far away from HTML5 so don’t use this tag, rather than you’ll use CSS to style the document.

In HTML the closing tag <basefont> isn’t required but in XHTML the top tag is required.

Example:-

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

Output:-

HTML Basefont tag

Example of Basefont tag

The basefornt tag is not supported in HTML5 use CSS to style the document

Khushal

Welcome to my corner of the web! I'm Khushal Tank, a passionate web developer and the author behind MyProgramming.com. With a robust background in PHP, Webflow, HTML, CSS, and JavaScript, I've dedicated myself to crafting seamless, interactive, and visually appealing websites.

Leave a Reply

Your email address will not be published. Required fields are marked *