Welcome to Interactive Programming Forums, where you can ask questions, receive answers from other members of the community, post code snippets and post exercies.

Having Problem in HTML Tutorial 3 Last Excercise.

+2 votes
The question is to create a text field,a drop down list with two options,a radio button,a checkbox,a password field and a submit button.but there is a problem. this is the code:

  <form action="1" method="post">
   Name: <input type="text" name="name" size="12" />
   List: <select name="favorite"><option value="HTML">HTML<option value="CSS">CSS</option></select>
   <input type="radio" name="html" value="html" />HTML
   <input type="checkbox" name="CSS" value="CSS" />CSS
   Password: <input type="password" name="pwd" />
   Submit button: <input type="submit" name="sbm" value="submit now" />

Can someone tell me the solution.
posted 10 years ago in HTML by waseem.shah20 (1,350 points)

1 Answer

+1 vote
Take a look at the following select tag with two option tags:

List: <select name="favorite"><option value="HTML">HTML<option value="CSS">CSS</option></select>

If you look at it carefully, you are missing the close tag for the first option.
answered 10 years ago by codeadmin (113,880 points)

Related questions

0 votes
0 answers
posted 8 years ago in HTML by sdubois (8,090 points)
+17 votes
1 answer
posted 11 years ago in HTML by team.kurt1 (1,120 points)
+10 votes
1 answer
posted 10 years ago in HTML by Milad1991 (2,750 points)
+10 votes
1 answer
posted 10 years ago in HTML by Sigurður Jónsson (6,630 points)