C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | 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.Syntax<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
Example<!DOCTYPE html> <html> <head> <title>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> Right way is to Use CSS to set the base font:<!DOCTYPE html> <html> <head> <style> p{ font-size: 20px; color: #67dfee; font-family: Helvetica; } </style> </head> <body> <h2>CSS to Style the document</h2> <p>This is Paragraph</p> </body> </html> AttributesTag specific attributes:
Supporting Browsers
Next TopicHTML bdi Tag
|