# How to specify the number of visible options for <select> in HTML?

HTMLWeb DevelopmentFront End Technology

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>
</html>