HTML5 is a great leap forward, one of the many improvements is form control. When you wanted to allow only numbers with decimals you had to rely on jQuery or another tool. You couldn't use type="number" because it only allowed for whole numbers. Try it below!
The number input looks like this:
<input type="number" step="any">
Subscribe to Adventures In Techland
Get the latest posts delivered right to your inbox