You are here: Reference > HTML > tags > baseFont

baseFont element

Browser support:
Specifies a default font value for the document.
This tag is deprecated. If you want to define how text should basically be shown in the document, use style properties for the body tag.
If you want to see the HTML tags by categories, please visit this page.
This element cannot have a closing tag.
JavaScript page for this element: baseFont.

Possible members:

Attributes
Events
Styles
class
Sets the style class or classes that belong to the element.
color
Sets the color of the text or line.
dir
Sets the text direction as related to the lang attribute.
DISABLED
Sets the state of an object for user interaction.
face
Specifies the font face for a page or for a font element.
id
Sets a unique identifier for the object.
lang
Specifies the language of the element.
size
Specifies the size of the font.
style
Sets an inline style associated with an element.

Example HTML code 1:

This example illustrates the use of the baseFont element:
<basefont size="7" /> Set the BASEFONT size.
<font size="4">Font size=4.</font>
Resume the BASEFONT size.
<basefont size="3" />
All text size = 3 in the future
Did you find this example helpful? yes no

Example HTML code 2:

Recommendation:
<head>
    <style>
        body {
            font-size: 13px;
            color: #120811;
            font-weight:bold;
        }
    </style>
</head>
<body>
    Some text content
</body>
Did you find this example helpful? yes no

Related pages:

External links:

User Contributed Comments

Post Content

Post Content