HTML <input> Tag with 'type=text'
<form name="myForm" action="/resources/html-forms-action.cfm">
<input type="text" name="myTextField" value="12345">
<button>Submit</button>
</form>
The above example demonstrates usage of the <input>
element with the type
attribute set to text
(i.e. type="text"
).
The text
value represents text with no line breaks. The field becomes a one line plain text input control.
For multiple lines of text, use the <textarea>
element.