HTML <meter> ค่าแอตทริบิวต์
ตัวอย่าง
เกจที่มีค่าปัจจุบันและส่วนต่ำสุด สูงสุด สูงและต่ำ:
<p><label for="anna">Anna's score:</label>
<meter id="anna" min="0"
low="40" high="90" max="100" value="95"></meter></p>
<p><label
for="peter">Peter's score:</label>
<meter id="peter" min="0" low="40"
high="90" max="100" value="65"></meter></p>
<p><label for="linda">Linda's
score:</label>
<meter id="linda" min="0" low="40" high="90" max="100"
value="35"></meter></p>
ความหมายและการใช้งาน
แอตทริบิวต์ที่ จำเป็นvalue
ระบุค่าปัจจุบันหรือ "ที่วัด" ของมาตรวัด
แอตทริบิวต์ค่าต้องอยู่ระหว่างค่าแอตทริบิวต์min
และ
max
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนแอตทริบิวต์อย่างเต็มที่
Attribute | |||||
---|---|---|---|---|---|
value | 8.0 | 13.0 | 16.0 | 6.0 | 11.5 |
ไวยากรณ์
<meter value="number">
ค่าแอตทริบิวต์
Value | Description |
---|---|
number | Required. Specifies a floating point number that is the current value of the gauge |
❮ แท็ก HTML <meter>