English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Der HTML-Tag <basefont> wird verwendet, um die Standardzeilentaille des Dokuments zu setzen. Mit <font> kann die Standardzeilentaille relativ geändert werden.
Verwenden Sie diesen Tag nicht mehr!
Definieren Sie die Standardfarbe und Größe des Textes auf der Seite:
<head> <basefont color="red" size="5" /> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body>Testen Sie es heraus ‹/›
IEFirefoxOperaChromeSafari
Nur IE 9 und frühere Versionen von IE-Browsern unterstützen den <basefont>-Tag. Es sollte vermieden werden, diesen Tag zu verwenden.
HTML5 Der <basefont>-Tag wird nicht unterstützt. Ersetzen Sie ihn durch CSS.
In HTML 4.01 Der <basefont>-Element ist veraltet.
Der <basefont>-Tag definiert die Standardfarbe, Größe und Schriftart aller Texte im Dokument.
Hinweis:CSS wird verwendet, um die Standardfarbe, Größe und Schriftart des Textes in einem Dokument festzulegen.
HTML5 The <basefont> tag is not supported, HTML 4.01 The <basefont> tag is deprecated.
Attribute | Value | Description |
---|---|---|
color | color | HTML5 Not supported. HTML 4.01 Deprecated. define the default color of the text in the document |
face | font_family | HTML5 Not supported. HTML 4.01 Deprecated. define the default font of the text in the document |
size | number | HTML5 Not supported. HTML 4.01 Deprecated. define the default size of the text in the document |
In HTML 4.01 In the <basefont> tag supports the following standard attributes:
Attribute | Value | Description |
---|---|---|
class | classname | define the class name of the element |
dir | rtl ltr | define the text direction of the content within the element |
id | id | define the unique id of the element |
lang | language_code | define the language code of the content within the element |
style | style_definition | define the inline style of the element |
title | text | define additional information about the element |
For a complete description, please visitStandard Attributes.
In HTML 4.01 where, the <basefont> tag does not support any event attributes.
For a complete description, please visitEvent Attributes.