input <input />

Block-level/Inline?:Inline
Empty?:Yes

Input <input /> is used for a variety of purposes: it can be a text field or a button or a checkbox or other things as well (w3schools.com). Use the type attribute to specify which. The value attribute will show what is on the button or in the text field.

Examples:

What do you want? <input type="text" value="PB and J" id="order" />

<input type="button" value="Place order"
    onclick="alert('That\'s nice; we don\'t have any ' +
                document.getElementById('order').value)" />

Example executing:

What do you want?

Back to Knowledge Dump