Use the min
attribute like this:
<input type="number" min="0">
More Related Contents:
- How can I set max-length in an HTML5 “input type=number” element?
- Why does the html input with type “number” allow the letter ‘e’ to be entered in the field?
- How to make HTML input tag only accept numerical values?
- How can I make the HTML5 number field display trailing zeroes?
- Make Input Type=”Password” Use Number Pad on Mobile Devices
- Force decimal point instead of comma in HTML5 number input (client-side)
- HTML5 input box with type=”number” does not accept comma in Chrome browser
- CSS Button styling – Need some help -html css RADIO BUTTON LINK
- Can I hide the HTML5 number input’s spin box?
- Are there any style options for the HTML5 Date picker?
- Do checkbox inputs only post data if they’re checked?
- Implement an input with a mask
- Change default text in input type=”file”?
- Override browser form-filling and input highlighting with HTML/CSS
- How to set date format in HTML date input tag?
- Is well formed without a ?
- Wrapping text inside input type=”text” element HTML/CSS
- Why does my “oninvalid” attribute let the pattern fail?
- HTML input type=”number” still returning a string when accessed from javascript
- Tab Index on div
- Bug With Firefox – Disabled Attribute of Input Not Resetting When Refreshing
- is there a max size to the length of a hidden input in html?
- What does “for” attribute do in an HTML tag?
- How to change the text color of first select option
- How do I trigger an HTML button when the “Enter” key is pressed in a textbox?
- What’s the point of having hidden input in HTML? What are common uses for this?
- How does stackoverflow make its Tag input field? [closed]
- How to get rid of x and up/down arrow elements of a input date?
- HTML: cursor showing in readonly input text?
- Make input element (type=”text”) handle multiple lines of text