English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Reference

HTML meter form attribute

The meter form attribute specifies one or more forms that the <meter> element belongs to.

 HTML <meter> tag

Online Example

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 ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

The form attribute of the <meter> tag is not supported by almost all mainstream browsers.

Definition and usage

The form attribute of the <meter> element specifies one or more forms that the element belongs to.

HTML 4.01 with HTML5differences

The <meter> tag is an HTML5 new tag in the list.

Syntax

<meter form="form_id">

Attribute value

ValueDescription
form_idSpecifies 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..
 HTML <meter> tag