HTML <meter> max attribute
Definition and usage
max
The property specifies the upper limit of the gauge.
max
The property value must be greater than min Property value.
If not specified, the default value is 1.
Hint:max
The property is associated with min Properties together define the complete range of the gauge.
Example
A gauge with the current value and minimum, maximum, high, and low values:
<p><label for="anna">Xiaoming'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>
Gramatyka
<meter max="number">
Wartość atrybutu
Wartość | Opis |
---|---|
number | Określa liczbową wartość jako maksymalną wartość wskaźnika. Domyślna wartość to "1". |
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 |