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