Plain Text

This following code demonstrates how to create an input element of type="text". Please notice the use of the <p>...</p> element to display information text in front of the text box.

HTML
<p>
  Net ID:
  <input type="text" name="name" id="test-text" />
</p>

Please Enter:

Birth Year:

Net ID:

NOTE: Technically, you can omit the “type” from the input element if you want a text box. But good style dictates that you should be explicit in your code so as to prevent errors. So don’t.