HTML <meter> form Attribute

❮ HTML <meter> tag

Example

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

<label for="anna">Your score:</label>
<meter id="anna" form="form1" name="anna" min="0" low="40" high="95" max="100" value="80"></meter>

Meaning

The form attribute specifies the form the <meter> element belongs to.

The value of this attribute must be equal to the id attribute of a <meter> element in the same document.

Note: The value of this attribute must be the id attribute of a <form> element in the same document.


Standard Syntax

<meter value="number" form="formId">...</meter>



Browser Support




Status







Attribute Values

Value Description
formId Specifies the form element the <meter> element belongs to.
❮ HTML <meter> tag