Form with text input

Example

<!DOCTYPE html>
<html>
<body>

<h2>Text Input</h2>

<form>
First name:<br>
<input type=”text” name=”firstname”>
<br>
Last name:<br>
<input type=”text” name=”lastname”>
</form>

<p>Note that the form itself is not visible.</p>

<p>Also note that the default width of a text input field is 20 characters.</p>

</body>
</html>

Output

Text Input

First name:

Last name:

Note that the form itself is not visible.

Also note that the default width of a text input field is 20 characters.

Updated: February 4, 2019 — 8:56 am
Java Script © 2019