HTML <meter> min attribute
Definition and usage
min
Property defines the lower limit of the instrument.
min
The property value must be less than max Property value.
If not specified, the default value is 0.
Hint:min
Property corresponds to max Properties together define the complete range of the instrument.
Example
Instrument with 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">Ocena Xiaomei:</label> <meter id="peter" min="0" low="40" high="90" max="100" value="65"></meter></p> <p><label for="linda">Ocena Xiaofeng:</label> <meter id="linda" min="0" low="40" high="90" max="100" value="35"></meter></p>
Gramatyka
<meter min="number">
Wartość atrybutu
Wartość | Opis |
---|---|
number | Liczba zmiennoprzecinkowa określająca jako najmniejszą wartość instrumentu. Domyślna wartość to 0. |
Obsługa przeglądarek
Liczby w tabeli wskazują na pierwszą wersję przeglądarki, która w pełni obsługuje ten atrybut.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
8.0 | 13.0 | 16.0 | 6.0 | 11.5 |