
This block of code shows 4 countries even when the size of the SELECT element specified is 2. Why is it so?
Select a Country:
<select name="country" size="2"> <option name="Australia" value="Australia" selected="selected">Australia</option> <option name="Belgium" value="Belgium">Belgium</option> <option name="Germany" value="Germany">Germany</option> <option name="India" value="India" >India</option> <option name="UK" value="UK">UK</option> <option name="USA" value="USA">USA</option>

The size attribute defines the number of visible options in a drop-down list.You have specified 2 as size. So it makes two countries visible at a time in dropdown. If you make size 3, it will show 3 countries at a time.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.