Advertisement
Home Open Editor ❯

HTML <meter> form Attribute

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>

Try this code ❯

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>


Advertisement

Attribute Values

Value Description
formId Specifies the form element the <meter> element belongs to.
Home Open Editor ❯
Advertisement