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>
ความหมายและการใช้งาน
แอตทริบิวต์high
ระบุช่วงที่ค่าของมาตรวัดถือเป็นค่าสูง
ค่าhigh
แอตทริบิวต์ต้องน้อยกว่า
max
ค่าแอตทริบิวต์ และยังต้องมากกว่าค่าแอตทริบิวต์low
และ
min
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนแอตทริบิวต์อย่างเต็มที่
Attribute | |||||
---|---|---|---|---|---|
high | 8.0 | 13.0 | 16.0 | 6.0 | 11.5 |
ไวยากรณ์
<meter high="number">
ค่าแอตทริบิวต์
Value | Description |
---|---|
number | Specifies a floating point number that is considered to be a high value |
❮ แท็ก HTML <meter>