English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
This article introduces the usage of the HTML meter value attribute, online examples demonstrate how to use the HTML meter value attribute, browser compatibility, syntax definition, and detailed information about its attribute values.
A gauge with the current value and min, max, high, low values:
<!DOCTYPE html> <html> <head> <title>HTML: <meter> value attribute - Basic Tutorial Website (oldtoolbag.com)</title> </head> <body> <p>Display a gauge:</p> <p>Anna's score: <meter min="0" low="40" high="90" max="100" value="95"></meter></p> <p>Peter's score: <meter min="0" low="40" high="90" max="100" value="65"></meter></p> <p>Punteggio di Linda: <meter min="0" low="40" high="90" max="100" value="35"></meter></p> </body> </html>Prova a vedere ‹/›
IEFirefoxOperaChromeSafari
Firefox, Opera, Chrome e Safari 6 supportano l'attributo value dell'etichetta <meter>.
L'attributo value è obbligatorio e specifica il valore corrente della misura.
Il valore dell'attributo value deve essere compreso tra i valori degli attributi min e max.
L'etichetta <meter> è una nuova etichetta in HTML5.
<meter value="number">
Valore | Descrizione |
---|---|
number | Obbligatorio. Specifica un numero decimale che rappresenta il valore corrente del misuratore. |