I create an input field that accepts any number of decimal places. I want to test this input as a number equal to 5 or more and less than 100. Using the min
and attributes max
, I was able to create the following HTML fragment. It functions correctly in every browser, but it looks awful.
<input type="number" step="any" min="5" max="99.9999999999999999" required>

Is there a decent way to do this (without rounding up fraud)?
I know that this can be easily solved using JavaScript, but I wonder if there is a decent way to do this using just HTML. I am trying to verify the input of users having HTML5 form validation but not JavaScript. Checking this entry on the server side forces the user to load the page again, which I am trying to avoid.
source
share