|
|
|
| | Home | HTML Guide Start | List of HTML Elements | Next Element | Previous Element | |
|
|
<SELECT></SELECT>Contains a menu of selectable items on a form |
|
|
Element used to define a list of choices for the user. <html> <head> <title>A Simple Form</title> </head> <body> . . <form method="POST" enctype="text/plain" action="mailto:mike@ruskfamily.com"> Your name please:<br> <input type=text name=name size=50 maxlength=50><br> How did you find me?:<br> ==>> <select name=howfound> <option selected value="Best Friend">Best Friend <option value="Close Friend">Close Friend <option value="Friend">Friend <option value="Larry King">Larry King <option value="Grease Man">Grease Man <option value="Told Not to Come">I was told not to visit ==>> </select><br> Comments?:<br> <textarea name=comment wrap=virtual rows=5 cols=55>I love this site because...</textarea> <br> <input type=submit value=Submit> <input type=reset value=Clear> </form> . . </body> </html> So there it is! A simple guest book entry form that ends up mailing you the entry. Unless of course the viewer is using Microsoft Internet Explorer. Too bad. If this example looks familiar it's because I'm using for all my form elements. HTML 3.2 FinalThe select element has the following attributes:
NetscapeNothing extra. Microsoft Internet ExplorerNothing special that I know of - yet. InternationalizationNothing special. |
| | Home | HTML Guide Start | List of HTML Elements | Next Element | Previous Element | |
|
Michael T. Rusk All contents copyright © 1996-2001
Michael T. Rusk Revised:
Sunday, December 30, 2007 11:06
-0500 |