HTML step Attribute Last Updated : 11 Jul, 2025 Comments Improve Suggest changes Like Article Like Report The step attribute in HTML is used to set the discrete step size of the <input> element. The default stepping value for number inputs is 1.Usage: It works with the following input types: number, range, date, datetime-local, month, time and week.Syntax: <input step = "value">Attribute Values: It contains a value i.e number which specifies the legal number interval for the number field. It has a default value which is 1.Example: In this example we demonstrate the step attribute in an <input> field, allowing only multiples of 5 as input values. It features centered headings and content styled with green color. html <!DOCTYPE html> <html> <head> <title>HTML step Attribute</title> <style> h1, h2 { text-align: center; } </style> </head> <body> <center> <h1 style="color: green;"> GeeksforGeeks </h1> <h2> HTML step Attribute </h2> <input type="number" name="points" step="5" placeholder="multiples of 5"> </center> </body> </html> Output: Supported Browsers: The browser supported by step attribute are listed below: Google ChromeEdge FirefoxOperaSafari Comment More infoAdvertise with us V Vishal Chaudhary 2 Follow Improve Article Tags : Web Technologies HTML HTML-Attributes Explore HTML Tutorial 11 min read BasicsHTML Introduction 5 min read HTML Editors 5 min read HTML Basics 7 min read HTML Structure & ElementsHTML Elements 5 min read HTML Attributes 8 min read HTML Headings 4 min read HTML Paragraphs 5 min read HTML Text Formatting 4 min read HTML Block and Inline Elements 3 min read HTML Charsets 4 min read HTML ListHTML Lists 5 min read HTML Ordered Lists 5 min read HTML Unordered Lists 4 min read HTML Description Lists 3 min read HTML Visuals & MediaHTML Colors 11 min read HTML Links Hyperlinks 3 min read HTML Images 7 min read HTML Favicon 4 min read HTML Video 4 min read HTML Layout & DesignHTML Tables 10 min read HTML Iframes 4 min read HTML Layout 4 min read HTML File Paths 3 min read HTML Projects& Advanced TopicsHTML Forms 5 min read HTML5 Semantics 6 min read HTML URL Encoding 4 min read HTML Responsive Web Design 11 min read Top 10 Projects For Beginners To Practice HTML and CSS Skills 8 min read HTML Tutorial ReferencesHTML Tags - A to Z List 15+ min read HTML Attributes Complete Reference 8 min read HTML Global Attributes 5 min read HTML5 Complete Reference 8 min read HTML5 MathML Complete Reference 3 min read HTML DOM Complete Reference 15+ min read HTML DOM Audio/Video Complete Reference 2 min read SVG Element Complete Reference 5 min read SVG Attribute Complete Reference 8 min read SVG Property Complete Reference 7 min read HTML Canvas Complete Reference 4 min read Like