English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Dieser Artikel beschreibt die Verwendung der HTML font size-Eigenschaft zur Bestimmung der Größe des Textes innerhalb des <font>-Elements, zeigt mit Online-Beispielen, wie die HTML font size-Eigenschaft, die Kompatibilität der Browser, die Syntaxdefinition und die detaillierten Informationen zu ihren Attributwerten verwendet werden.
Bestimmen Sie die Größe des Textes:
!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Verwendung der HTML <font> size-Eigenschaft-Grundlagen-Tutorial(oldtoolbag.com)</title> </head> <body> <p><font size="6">Dies ist ein Text!<!/font></p> <p>HTML5Die Eigenschaft color wird nicht unterstützt, bitte verwenden Sie CSS stattdessen.</p> </body> </html>Test to see ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the size attribute.
HTML5 The <font> tag is not supported. Please use CSS instead.
In HTML 4.01 In the <font> tag, the size attribute has been deprecated.
The size attribute specifies the size of the text in the <font> element.
In HTML 4.01 In the <font> tag, the size attribute is deprecated. Please use CSS instead.
CSS Syntax: <p style="font-size:20px">
CSS Example: Set the size of the text
In our CSS tutorial, you can find more aboutfont-size Attribute details.
<font size="number">
Value | Description |
---|---|
number | define the size of the text. Possible values: from 1 to 7 The number. The default value in the browser is 3. |