HTML <meter> value attribute

Definition and usage

Required value The attribute specifies the current value or 'measurement value' of the gauge.

value The attribute must be between min and max between attribute values.

Example

A gauge with the current value and the minimum, maximum, high, and low values:

<p><label for="anna">Xiao Ming's score:</label>
<meter id="anna" min="0" low="40" high="90" max="100" value="95"></meter></p>
<p><label for="peter">Punkty Xiaomei:</label>
<meter id="peter" min="0" low="40" high="90" max="100" value="65"></meter></p>
<p><label for="linda">Punkty Xiaofeng:</label>
<meter id="linda" min="0" low="40" high="90" max="100" value="35"></meter></p>

Spróbuj sam

Gramatyka

<meter value="liczba">

Wartość atrybutu

Wartość Opis
liczba Wymagane. Określa liczbową wartość, która jest bieżącą wartością przyrządu.

Obsługa przeglądarek

Liczby w tabeli wskazują na pierwszą wersję przeglądarki, która w pełni obsługuje tę właściwość.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
8.0 13.0 16.0 6.0 11.5