Lesson 7 Notes
Lesson 7 Notes
Since Lesson 1, you have been expanding your knowledge of HTML codes through a series of HTML practice exercises.
These exercises, used in conjunction with the assignments, will culminate in a complete web site.
In this exercise, you will add a form to the web site that you are working on for Assignment #6.
Forms
Forms are a method of creating interactive pages where the reader can answer questions and send their response to
you. Forms are a very complex topic, and cannot be fully covered in one brief period, so this will just be a very basic
introduction.
Important information:
To create a form which uses the mailto action:
<form action="mailto:userid@uwindsor.ca" method="post" enctype="text/plain">
The action parameter specifies where the results from the form will be sent, and the method parameter specifies
how that information will be sent there. At the end of the form, you must close the form tag.
o Container tag
o Configures a variety of form elements including text boxes, radio buttons, check boxes, and buttons
· <textarea> tag
o Container tag
· <select> tag
o Container tag
· <option> tag
o Container tag
At the start of any form area, you must declare that you are making a form, and give some information to the browser
about what to do with it. This is done in the form tag, through the two required parameters, action and method.
o action
§ Specifies the server-side program or script that will process your form data
· method
· id
Inside the form, you can specify any kind of HTML codes you wish, but the only ones which will be important for the form
are the input types and the submit tags. The name parameter are the headings that appear on the form and help to
organize the data therein.
o type=“text”
o name
o id
o size
o maxlength
o value
figure5_12
o type=“password”
o name
o id
o size
o maxlength
o value
o type=“checkbox”
o name
o id
o checked
o value
o type=“radio”
o name
o id
o checked
o value
o name
o id
o cols
o rows
figure5_13
o name
o id
o size
o multiple
figure5_16
o value
o selected
Submit buttons - are used to send the information off to wherever it is going. Likewise, the reset button clears any
entered data.
If you can meet the objectives stated at the beginning of Lesson 7, you are ready to proceed to the next lesson. Keep in
mind the weekly schedule recommended in the course syllabus.
Assignment
Please visit the Assignments portion of the course for details on Assignment #6.