Text Summary of Form Field Tags
The following is a listing of the different tags used to create form fields, what attributes are required by each tag, and which attributes are optional. This list is a text-only version of the summary table.
- input type="text"
- required: name
- optional: value, size, maxlength, id
- input type="password"
- required: name
- optional: value, size, id
- input type="hidden"
- required: name, value
- optional: id
- input type="checkbox"
- required: name, value
- optional: checked, id
- input type="radio"
- required: name, value
- optional: checked, id
- <textarea>
- required: name
- optional: value, size, rows, columns, id
- <select>
- required: name
- optional: size, multipl, id
- <option>
- optional: value, selected, id
- input type="submit"
- optional: name, value
- input type="reset"
- optional: value
- input type="image"
- required: src
- optional: name, border, align
- <fieldset>
- <legend>
