![]() |
|
The following example shows how to combine some of these tags to create a form: <body> <h2 align="center">Ann's Dodgy Holiday Company</h2> <p>We can help make sure your holiday is a total disaster.<br> We specialise in over-booked charter flights, filthy hotel rooms,<br> the highest calibre salmonella and unhelpful reps.<p> <p>Fill in the form for more information.</p> <form method="post" action="script.cgi"> Your name: <input name="name" size="25"><p> Your e-mail address: <input name="email" size="25"><p> I am interested in: <select name="Choice" size="1"> <option>Late running, hot, cramped flights <option>Hotels with a view (not promising what sort) <option>Self catering hovels (no food poisoning here) <option>Cultural information. Who knows? <option>Food and drink. Emphasis on the latter. <option selected>Don't care as long as it is cheap! </select> <p> I am: <input type="radio" name="character" value="0">Barmy <input type="radio" name="character" value="1">Poor <input type="radio" name="character" value="2">Desperate <input type="radio" name="character" value="3" checked> A masochist<p> Comments:<p> <textarea name="note" rows="10" cols="30"></textarea> <p> <input type="submit" value="Send Form"> <input type="reset"> </form> </body> </html> This displays as:
|
More information Setting up the tab order of fields An example form |