====== Forms and Web User Interfaces ====== **Adapted from**: Robert W. Sebasta, Programming the World-Wide Web, 3rd Edition, Addison Wesley, 2006. **Supporting**: [[eg-259:lecture3|Contact Hour 4]]. ===== Exercises to Illustrate Forms ===== - Create, test and validate an HTML5 document that has a form with the following controls: - A text field to collect the user's name - Four check boxes, one each for the following items: - Four 100-Watt light bulbs for £1.39 - Eight 100-Watt light bulbs for £2.49 - Four 100-Watt, long-life light bulbs for £2.29 - Eight 100-Watt, long-life light bulbs for £4.29 - A collection of three radio buttons that are labeled as follows: - Visa - Mastercard - Switch - Add a submit button labeled ''checkout'' and a reset button labeled ''cancel'' to the form created in Exercise 1. - Add a menu to the form created in Exercise 1 to select a delivery method. E.g. choice of //next day delivery//, //1st class post//, //free post//, //courier//, etc. Make //1st class post// the default delivery method. - Add ''