HTML Form Input Boxes and Buttons

Form Type

Description

Display

<Form>  </Form>Starts and Ends with attributesid, Method, Action
input Defines the type of form objects: text, checkbox, radio, password, textarea, or hidden.
type="button" Display button that can be clicked to perform an action
type="image" Use the image src for the button src="images/blueback.gif"
type="text"Text field is used to input values
type="checkbox" Displays checkbox Check one:FlowersTrees
type="radio" Display a radio button Select one: Flowers Trees
type="password"Input box that hides text entered by the user
type="textarea"Text field to write volumes; set rows and column height
select /selecct
option value
Displays a selection list of data
type="hidden"Hidden fields hold data read only by the cgi files. Not viewed by the user

Form Buttons

type="reset"Display a button to clear the form
type="submit"sends the data to the server when clicked
fieldset /fieldsetBorders the form data
Check one:
Flowers Trees
legend /legendPlaces text within top of fieldset
Fieldset borders the legend
Check one: Flowers Trees
Web Design with XHTML Part II
Doris Cuffey, Instructor