English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Das HTML Font-Element (<font>) definiert die Schriftgröße, Farbe und Darstellung des Inhalts. Diese Eigenschaft wurde aus den Web-Standards entfernt, obwohl einige Browser sie derzeit noch unterstützen, könnte sie in Zukunft möglicherweise nicht mehr unterstützt werden. Verwenden Sie diese Eigenschaft daher nicht.
Definiert die Textgröße, Schriftart und Farbe:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Grund教程(oldtoolbag.com)</<title> </<head> <body> <p><font size="3" color="red">Dies ist ein Text! </font></p> <p><font size="2" color="blue">Dies ist ein Text! </font></p> <p><font face="verdana" color="green">Dies ist ein Text! </font></p> </body> </html>Testen Sie es heraus ‹/›
IEFirefoxOperaChromeSafari
Alle gängigen Browser unterstützen das <font>-Tag.
HTML5 Das <font>-Tag wird nicht unterstützt. Verwenden Sie stattdessen CSS.
In HTML 4.01 Innerhalb von <font>-Element ist veraltet.
<font>-Tag definiert die Schriftart, Schriftgröße und Schriftfarbe des Textes.
Hinweis:Verwenden Sie CSS, um den Text zu definierenSchriftart, Größe, Farbe.
HTML5 The <font> tag is not supported, HTML 4.01 The <center> tag is deprecated.
Attribute | Value | Description |
---|---|---|
color | rgb(x,x,x) #xxxxxx colorname | HTML5 Not supported. HTML 4.01 Deprecated. define the color of the text. |
face | font_family | HTML5 Not supported. HTML 4.01 Deprecated. define the font of the text. |
size | number | HTML5 Not supported. HTML 4.01 Deprecated. define the size of the text. |
In HTML 4.01 In the <font> 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 <font> tag does not support any event attributes.
For a complete description, please visitEvent Attributes.