Click to skip over navigation
 

lecture 9: handout

<< previous slide

return to lesson 9 index

next slide >>


list of available input types

Type:

Example

type attribute

Other attributes/info

Text box

text

size, maxlength. value is not compulsory but can be used to suggest an input.

Password box

password

size, maxlength

Radio box

radio

value is required. Radio boxes which share a name present mutually exclusive choices.

Check box

checkbox

value is required. Checkboxes which share a name can have any number selected.

Selection box

Done with a combination of the <select> and <option> tags

size, multiple, selected

File selection

file

size. maxlength is available, but not recommended.

Hidden

hidden

value is compulsory (otherwise the "box" is useless).

General button

button

value sets the text. Without some associated JavaScript, general buttons have no purpose.

Submit button

submit

value can be used to place different text on the button.

Reset button

reset

value can be used to place different text on the button.