Using the <text> Element

Elements of type text create basic single-line text fields. The Try It example in this section will help you make your first text element. Text elements also have many attributes that can be helpful such as list, maxLength, minLength, size, and a few more. The section also introduces client-side validation of text fields which will be covered in detail later.

<input type="text">

<input> elements of type text create basic single-line text fields.


Source: Mozilla, https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/text
Creative Commons License This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.