June 2025
Beginner
817 pages
31h 30m
English
This section provides an overview of the various classic HTML input fields and the most important attributes for them.
The standalone input element allows you to display a single-line text field where users can enter data via the keyboard. Because you can and will use the input element for many other field types, you should provide it with the type="text" attribute for the single-line text field for clarification (optional). A basic use of <input> for a single-line text input field might look as follows:
...<form>Enter your name: <input type="text" name="aName" size="30" maxlength="40"></form>...
Listing 7.1 /examples/chapter007/7_2_1/index.html ...
Read now
Unlock full access