Title Text Goes Here



Download 2.8 Mb.
View original pdf
Page30/37
Date16.06.2022
Size2.8 Mb.
#59010
1   ...   26   27   28   29   30   31   32   33   ...   37
com-225-web-technology-theory

Text Fields
Text fields are used when you want the user to type letters, numbers, etc. in a form.
First name
Last name

How it looks in a browser First name Last name Note that the form itself is not visible. Also note that inmost browsers, the width of the text field is 20 characters by default.
input Examples The type" attribute is used to specify which input form type to use. Study the examples that follow to see which attributes maybe used for each type. The following HTML code segment is needed to produce a text box
Enter name
The above HTML code segment would produce the following results in a web browser Enter name
Radio Buttons
Radio Buttons are used when you want the user to select one of a limited number of choices.

Male

TYPE THE DOCUMENT TITLE
63
Female
How it looks in a browser Male Female Note that only one option can be chosen. The following HTML code segment is needed to produce a set of radio buttons

Small
Medium
Large
The above HTML code segment would produce the following results in a web browser Small Medium Large


Checkboxes
Checkboxes are used when you want the user to select one or more options of a limited number of choices.
I have a bike
I have a car
I have an airplane

How it looks in a browser I have a bike I have a car I have an airplane The following HTML code segment is needed to produce a set of checkboxes:


TYPE THE DOCUMENT TITLE
64 value="pepperoni">Pepperoni
Sausage
Mushrooms
Black Olives
The above HTML code segment would produce the following results in a web browser Pepperoni Sausage Mushrooms Black Olives

Download 2.8 Mb.

Share with your friends:
1   ...   26   27   28   29   30   31   32   33   ...   37




The database is protected by copyright ©ininet.org 2024
send message

    Main page