HTML Value Syntax
HTML integer syntax
A conforming signed integer consists of ASCII decimal digits with an optional leading minus. No decimal point, exponent or plus sign in author syntax. Particular attributes may restrict the range or require non-negative integers; parsing rules may accept more than author syntax. This is a value grammar, not a standalone HTML element.
Formal Syntax & Structure
html syntaxhtml
-?[0-9]+Working Example
Example Snippethtml
<ol start="-2"> <li>First</li> <li>Second</li></ol>