ข้อมูลอ้างอิงHTML

HTML โดยตัวอักษร HTML ตามหมวดหมู่ รองรับ HTML Browser แอตทริบิวต์ HTML HTML Global Attributes เหตุการณ์ HTML HTML สี HTML Canvas HTML เสียง/วิดีโอ ชุดอักขระ HTML HTML Doctypes การเข้ารหัส URL HTML รหัสภาษา HTML รหัสประเทศ HTML ข้อความ HTTP วิธี HTTP ตัวแปลง PX เป็น EM แป้นพิมพ์ลัด


แอตทริบิวต์รูปแบบ HTML <meter>

❮ แท็ก HTML <meter>

ตัวอย่าง

<meter> องค์ประกอบที่อยู่นอกแบบฟอร์ม (แต่ยังคงเป็นส่วนหนึ่งของแบบฟอร์ม):

<form action="/action_page.php" method="get" id="form1">
  First name: <input type="text" name="fname"><br>
  <input type="submit" value="Submit">
</form>

<p><label for="anna">Anna's score:</label>
<meter id="anna" form="form1" name="anna" min="0" low="40" high="90" max="100" value="95"></meter></p>

ความหมายและการใช้งาน

แอตทริบิวต์formระบุรูปแบบที่ <meter>แท็กเป็นของ

ค่าของแอตทริบิวต์นี้ต้องเท่ากับidแอตทริบิวต์ของ <meter> องค์ประกอบในเอกสารเดียวกัน 


รองรับเบราว์เซอร์

Attribute
form Not supported Not supported Not supported Not supported Not supported

ไวยากรณ์

<meter form="form_id">

ค่าแอตทริบิวต์

Value Description
form_id Specifies the form element the <meter> element belongs to. The value of this attribute must be the id attribute of a <form> element in the same document.

❮ แท็ก HTML <meter>