Monday, April 3, 2017

HTML Input Attributes

The value Attribute

The value attribute specifies the initial value for an input field:

<!DOCTYPE html>
<html>
<body>

<form action="">
First name:<br>
<input type="text" name="firstname" value="John">
<br>
Last name:<br>
<input type="text" name="lastname">
</form>

</body>
</html>



No comments:
Write comments

Recommended Posts × +