Web Design

(Nancy Kaufman) #1

258


Add Check Boxes...................................................


4 Type value=”?”, replacing
? with a value for this check
box.


5 Type id=”?”, replacing?
with an appropriate ID value.


6 Type />.


1 In your editor, open an HTML
page that contains a


tag set.

2 Type <input
type=”checkbox”.


3 Type name=”?”, replacing?
with a descriptive name for
the set of check boxes.


Add Check Boxes


I


nstead of having your users enter information, you can provide them with a set of choices. When
you want to allow users to select from a group of choices, and allow them to potentially select

more than one choice, you can use check boxes. In HTML, check boxes use the tag, but


with the type attribute set to checkbox. Like text fields, check boxes need a name attribute, but


they also require a value. A set of check boxes should all have the same name, but different values.


If you are using labels, each also needs a unique ID.


1


2


3


4 5 6

Free download pdf