It is known as basefont tag. It is used to define the default font-color, font-family, font-size, etc. for all the text of the document. It has only start <basefont> tag and does not have an end tag. The <basefont> tag is only supported by Internet Explorer.
The <basefont> tag is supported by some standard and other attributes, but it does not support any type of event attributes. These attributes are-
Standard attributes supported by the <basefont> tag-
Attribute | Description |
---|---|
class | It is used to specify the classname for an element |
dir | It is used to specify the text direction of the content in an element |
id | It is used to specify the unique id of an element |
lang | It is used to specify the language code of the content in an element |
style | It is used to specify an inline style of an element |
title | It is used to specify an extra information about an element |
Other attributes supported by the <basefont> tag-
Attribute | Description |
---|---|
color | It is used to specify the default color for the text of the document |
face | It is used to specify the default font for the text of the document |
size | It is used to specify the default size for the text of the document |
Example-
<html>
<head>
<basefont color="blue" size="10">
</head>
<body>
Content of your website goes here.
</body>
</html>
Toggle Sidebar