how to give default value to the input code example Example: default value input <input type="text" id="fname" name="fname" value="John">