HTML slt;basefont and size properties
The size property defines the font size of the HTML document, the value can be numeric or relative, the value range is 1 to 7, 1 is the smallest, the default value is 3, please refer to the following example:
Specify the default font size on the page:
<basefont size="7" />
</head>
<body>
<h1>这是一个标题</h1>
<p>这是一个段落</p>
</body>
Try it out . . .
Browser support
Size properties are not supported by any browser except Internet Explorer 9.0 and earlier versions of IE.
Definitions and usages
HTML5 no longer supports the label. Use CSS instead.
The size property of slt;basefont is discarded in HTML 4.01.
The size property specifies the Chinese size (font size) of the document's original.
Compatibility comments
The face property of the basefont element is not supported in HTML 4.01, and the face property of the basefont element is not supported in XHTML 1.0 Strict DTD.
CSS syntax (-lt; head-gt; part): slt;style-gt; body-font-size: 10px?lt;/style?gt;
CSS instance: Specify the default text font for the page
In our CSS tutorial, you can find more details about font-family properties.
Grammar
The property value
Value | Describe |
---|---|
font_family | Specify the font of the text. To specify a priority table for a number of fonts, use a comma to separate the font names (e.g., the "verdana, arial, sans-serif" />) using a comma. |
HTML and basefont