take a default a value for input number type in html code example Example: default value input <input type="text" id="fname" name="fname" value="John">