Html-meter-tag
提供:Dev Guides
HTML-<meter>タグ
説明
HTML <meter>タグは、既知の範囲(ゲージ)内のスカラー測定値を指定します。
例
<!DOCTYPE html>
<html>
<head>
<title>HTML meter Tag</title>
</head>
<body>
<meter value = "7" min = "0" max = "10">7 out of 10</meter>
<br/>
<p>gauge value can be seen here</p>
</body>
</html>
これは、次の結果を生成します-
グローバル属性
このタグは、− link:/html/html_attributes_reference [HTML属性リファレンス]で説明されているすべてのグローバル属性をサポートします
特定の属性
HTML <meter>タグは、次の追加属性もサポートしています-
Attribute | Value | Description |
---|---|---|
form html-5 | form_id | Specifies one or more forms. |
high html-5 | number | Specifies high value range. |
low html-5 | number | Specifies low value range. |
max html-5 | number | Specifies the maximum value of the range |
min html-5 | number | Specifies the minimum value of the range |
optimum html-5 | number | Specifies the optimal value. |
value html-5 | number | Specifies current value of the gauge − Required. |
イベント属性
このタグは、− link:/html/html_events_reference [HTMLイベントリファレンス]で説明されているすべてのイベント属性をサポートします。
ブラウザのサポート
Chrome | Firefox | IE | Opera | Safari | Android |
---|---|---|---|---|---|
Yes | Yes | No | Yes | Yes | No |