 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to specify the number of visible options for <select> in HTML?
Use the size attribute to set the number of visible options for <select> element in HTML.
Example
You can try to run the following code to implement size attribute −
<!DOCTYPE html> <html> <body> <p>Select the countries you have visited till now,</p> <select size = "5"> <option value = "india">India</option> <option value = "us">US</option> <option value = "canada">Canada</option> <option value = "aus">Australia</option> <option value = "bangladesh">Bangladesh</option> </select> </body> </html>
Advertisements
 