HTML Value Syntax
HTML floating point syntax
A decimal number may contain a leading minus, fractional part and exponent with e or E. At least one digit is needed in the significand, and a decimal point must be followed by digits. NaN and Infinity are not valid HTML floating-point strings. Attribute-specific bounds still apply. This is a value grammar, not a standalone HTML element.
Formal Syntax & Structure
html syntaxhtml
-?(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+)(?:[eE][+-]?[0-9]+)?Working Example
Example Snippethtml
<meter min="0" max="1" value="0.75">75%</meter>