Homework Three- Forms

Things to remember:

  • Forms ALWAYS need a FORM tag. In hand-coded HTML, you do this by inserting the <form> tag into your code. In the Design view, you can add a form element using the Form button.
  • The form attributes include: id, name, method, and action.
  • Adding a unique name in the Form ID text fi eld makes it possible to identify and control the form with a script, such as a JavaScript or a VBScript. It is also very important for form validation.
  • Form actions include:
    • GET includes the form data as part of the URL of the request to the server. GET has a length limitation of 8,192 characters in the URL and is less commonly used to send long forms than the POST method.
    • POST is similar to GET, but it embeds the form data in the header of the server request instead of in the URL. Although the POST method is the most commonly used, be aware that pages sent by this method cannot be bookmarked and are not encrypted for security purposes.
  • The FIELDSET element allows authors to group thematically related controls and labels. Grouping controls makes it easier for users to understand their purpose. The proper use of this element makes documents more accessible.
  • The LEGEND element allows authors to assign a caption to a FIELDSET. The legend improves accessibility when the FIELDSET is rendered non-visually.
  • Here is a good explanation of these tags.
Your Details

Your Sandwich

What type of bread would you like?

What about condiments?

Your Payment Method

How would you like your sandwich to be delivered?

How would you like to pay for this?

Any comments?

Useful Links

Use the Jump Menu below to navigate to some useful sites on forms