Beruflich Dokumente
Kultur Dokumente
3 components of a web
page form
Input controls
A <form> tag, which contains the
necessary information to process the
form
A submit button
Input Controls
An input control is any type of input
mechanism on a form
A data input control is either a radio
button, a check box, a Submit button, a
Reset button, or a selection menu
A text input control is either a text box, a
textarea box, or a password text box
Input Controls
Text control
A text control creates a text box that is
used for a single line of input.
2 attributes:
1. size determines the number of
characters that display on the form
2. maxlength specifies the maximum
length of the input field
Password control
A password control also creates a text box
used for a single line of input except that
the characters entered into the field can
display as asterisks or bullets.
Radio control
A radio control limits the web page visitor
to only one choice from a list of choices.
Checkbox control
A checkbox control allows a web page
visitor to select more than one choice
from the list of choices.
Select control
A select control creates a selection menu
from which the visitor selects one or
more choices. (drop down menu)
Fieldset control
A fieldset control helps to group related
form elements together. This makes the
form easier to read and complete.
Each input
one or two
control has
attributes:
<form> </form>
attributes
action
method
target
<input> attributes
type
name
value
checked
disabled
Disables a control
<input> attributes
readonly
size
maxlength
src
alt
tabindex
<legend></legend>
attributes
align
<select></select>
attributes
name
size
multiple
disabled
tabindex
<option></option>
attributes
selected
disabled
Disables a control
value
<textarea></textarea>
attributes
name
rows
cols
disabled
Disables a control
readonly
tabindex
4 sample variations:
<p>Sample 1:
<p>Sample 2:
<select name=color>
<option>Red</option>
<option>Red</option>
<option>Blue</option>
<option>Blue</option>
<option>Yellow</option>
<option>Yellow</option>
<option>Black</option>
<option>Black</option>
<option>White</option>
<option>White</option>
</select>
</select>
</p>
</p>
4 sample variations:
<p>Sample 3:
<p>Sample 4:
<option>Red</option>
<option>Red</option>
<option>Blue</option>
<option>Blue</option>
<option>Yellow</option>
<option>Yellow</option>
<option>Black</option>
<option selected>Black</option>
<option>White</option>
<option>White</option>
</select>
</select>
</p>
</p>
Adding a Textarea
Example:
<p>Describe yourself:
<br /><textarea name=describeyourself
rows=6 cols=50></textarea></p>
Form Groupings
Example:
<fieldset><legend align=left>Information</legend>
.
.
.
.
.
</fieldset>
Case Study # 6
Create a web page that sell items and provide the visitor
with an order form.
Minimum number of items on sale is 10.
Each item should have a picture and should contain
detailed information and description.
Use as many input controls as possible.
Save your file on drive Z:
Surname_firstname_cs6.html
Format
(Hard Copy &
Computerized)
Title Page
Case Study Question
Source Code
Screen Shots for every html file
Web Structure
Discussion
Note: B&W only.