English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <basefont> Tag

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!

Online-Beispiel

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 ‹/›

Browserkompatibilität

IEFirefoxOperaChromeSafari

Nur IE 9 und frühere Versionen von IE-Browsern unterstützen den <basefont>-Tag. Es sollte vermieden werden, diesen Tag zu verwenden.

Tagdefinition und Verwendungshinweise

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.

Hinweise und注意事项

Hinweis:CSS wird verwendet, um die Standardfarbe, Größe und Schriftart des Textes in einem Dokument festzulegen.

HTML 4.01 with HTML5differences

HTML5 The <basefont> tag is not supported, HTML 4.01 The <basefont> tag is deprecated.

Optional Attributes

AttributeValueDescription
colorcolorHTML5 Not supported. HTML 4.01 Deprecated.    define the default color of the text in the document
facefont_familyHTML5 Not supported. HTML 4.01 Deprecated. define the default font of the text in the document
sizenumberHTML5 Not supported. HTML 4.01 Deprecated. define the default size of the text in the document

Standard Attributes

In HTML 4.01 In the <basefont> tag supports the following standard attributes:

AttributeValueDescription
classclassnamedefine the class name of the element
dirrtl
ltr
define the text direction of the content within the element
ididdefine the unique id of the element
langlanguage_codedefine the language code of the content within the element
stylestyle_definitiondefine the inline style of the element
titletextdefine additional information about the element

For a complete description, please visitStandard Attributes.

Event Attributes

In HTML 4.01 where, the <basefont> tag does not support any event attributes.

For a complete description, please visitEvent Attributes.