<form name="myForm" action="https://www.PuStudy.Com/resources/html-forms-action.html">
<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.