by default enter value inside text box html code example Example: default value input <input type="text" id="fname" name="fname" value="John">