English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The meter form attribute specifies one or more forms that the <meter> element belongs to.
The <meter> element is outside the form (but still part of the form):
<!DOCTYPE html> <html> <head> <title>HTML: <meter> form Attribute - 基础教程网(oldtoolbag.com)</title> </head> <body> <form action="action_page.php" method="get" id="form1"> First name: <input type="text" name="fname"><br> <input type="submit" value="Submit"> </form> <p>Display a gauge:/p> <p>Anna's score: <meter form="form1" name="anna" min="0" low="40" high="90" max="100" value="95></meter></p> </body> </html>Test to see ‹/›
IEFirefoxOperaChromeSafari
The form attribute of the <meter> tag is not supported by almost all mainstream browsers.
The form attribute of the <meter> element specifies one or more forms that the element belongs to.
The <meter> tag is an HTML5 new tag in the list.
<meter form="form_id">
Value | Description |
---|---|
form_id | Specifies meter The element belongs to the form element. The value of this attribute must be an id attribute of a <FORM> element in the same file.. |