961026-3 |
A part of a web page looks like this: If you click on Select beverage", you will see the following: Which HTML code will produce this result? |
Full score answer: |
What do you prefer? <SELECT NAME="fm1"> <OPTION SELECTED>Select beverage <OPTION> Tea <OPTION> Coffee <OPTION> Chocolate </SELECT> <P> <INPUT NAME="name" TYPE="submit" VALUE="Submit"> Note 1: "SELECTED" not needed, since default is first choice. Note 2: One student thought it not neat to include a choice "Select beverage" which is not to be used. However, otherwise the "Tea" choice would be default, which might not be desirable. Also, "Select beverage" allows a user to not select any of the beverages. |