HTML max attribute Last Updated : 12 Jul, 2025 Comments Improve Suggest changes Like Article Like Report In HTML max attribute it specifies the maximum value of an element. when the max attribute is used by the progress element, it specifies how much work the task requires in the total task. Syntax<element max="value" >Supported Tags:The max attribute is used on the following elements:Name Descriptioninput maxMaximum value or limit for a parameter or variable.meter maxThe highest possible measurement value on a metering device.progress maxThe maximum level of advancement or completion reached in a process.HTML max attribute ExamplesExample: In this example we demonstrates the use of the max attribute in an input field, limiting the input to multiples of 5 up to a maximum value of 100. HTML <!DOCTYPE html> <html> <body> <h2>HTML max Attribute in Input Field</h2> <form id="myGeeks"> <input type="number" id="myNumber" step="5" name="geeks" placeholder="multiples of 5" max="100" /> </form> <br /> <br /> <p style="font-size: 20px"> The maximum value for an input field is 100. </p> </body> </html> Output:HTML max attribute Example OutputExample 2: This Example we are using the max attribute within the <progress> tag to indicate a maximum value of 100 for a song download progress bar. HTML <!DOCTYPE html> <html> <head> <title>max Attribute</title> </head> <body> <h2> HTML max Attribute used in Progress Tag </h2> Downloading progress for a song: <progress value="50" max="100"> </progress> </body> </html> Output:HTML max attribute example outputSupported Browsers: The browser supported by HTML max Attribute are listed below:Google ChromeEdge Firefox OperaSafari Comment More infoAdvertise with us S shubham_singh 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