|
Helping ordinary people create extraordinary websites! |
HTML Form Tutorial, Part IBy Will Bontrager2004-07-06
Form Related Tags Between the <form> and </form> tags are the tags that create the body of the form. These are <select> (for drop-down and menu boxes), <textarea> (for multi-line text areas), and <input> (for the rest). Every form related tag can have a name attribute. Some require it, others don't. The assigned name is sent with the information and helps the receiving program or function identify the information chunks it receives. Some receiving programs and functions consider tag names to be case sensitive; some do not. If you don't know which applies to your form, assume tag names are case sensitive. Some receiving programs and functions are okay with tag names containing spaces; some are not. If you don't know whether or not it is okay to use spaces in your form's tag names, use underscore characters instead of spaces. Underscore characters are almost always okay within tag names so long as the name doesn't start or end with an underscore. Here is an example name attribute:
In most situations, it is highly desirable that no duplicate names exist within the form. Tutorial Pages: » HTML Form Tutorial, Part I » How Information Is Sent » Specifying the Encoding Method for the Information Being Sent » Form Related Tags » The <input> Tag » Part II Copyright 2004 Bontrager Connection, LLC |
|