The value attribute specifies the initial value for an input field:
HTML file: | Displayed by browser: |
---|---|
<form>
First name: <br /><input type="text" name="firstname" value="John"> <br /> <br />Last name: <br /><input type="text" name="lastname"> </form> |