Current Assignment(s)
A4: Questionnaire
Due: Recommended by Monday, 5.28
Due: Recommended by Monday, 5.28
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.
- Previous
- Next