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