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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <meter> Tag

Der HTML <meter>-Element wird verwendet, um skalare Werte oder Bruchwerte innerhalb eines bekannten Bereichs anzuzeigen.

Online-Beispiel

Verwenden Sie das meter-Element, um den angegebenen Datenbereich anzuzeigen:

!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>Grundlagen-Tutorial-Website(oldtoolbag.com)</title> 
</head>
<body>
<p>Erwärmen Sie den Ofen auf <meter min="200" max="500" value="350">350 Grad</meter>.<br>
<meter value="0.6">60%</meter>
</p>
</body>
</html>
Testen Sie heraus ‹/›

Browserkompatibilität

IEFirefoxOperaChromeSafari

Alle gängigen Browser unterstützen den <meta>-Tag.

Definition und Verwendung des Tags

Der <meter>-Tag definiert eine Maßzahl. Er wird nur für Messgrößen mit bekanntem Maximum und Minimum verwendet.

such as: disk usage, relevance of query results, etc.

Note: <meter> cannot be used as a progress bar, progress bars <progress> Tag.

Use notes: unless the value range is between 0 and1(closed interval), otherwise the min and max attributes must be defined to ensure that the value attribute is within the value range. In other words, the default min and max values are 0 and1.

HTML 4.01 between HTML5 difference

<meter> is an HTML5 new tag.

Attribute

AttributeValueDescription
formHTML5form_idSpecifies one or more forms to which the <meter> element belongs.
highHTML5numberSpecifies the range of values defined as high.
lowHTML5numberSpecifies the range of values defined as low.
maxHTML5numberSpecifies the maximum value of the range.
minHTML5numberSpecifies the minimum value of the range.
optimumHTML5numberSpecifies the optimal value of the measurement.
valueHTML5numberRequired. Specifies the current value of the measurement.

Global Attributes

<meter> Tag supports global attributes, see the complete attribute table HTML Global Attributes.

event attributes

<meter> Tag supports all HTML Event Attributes.