x
 
1
<!DOCTYPE html>
2
<title>My Example</title>
3
4
<select name="form_example" size="3">
5
    <option value="Option1">Option 1
6
    <option value="Option2">Option 2
7
    <option value="Option3">Option 3
8
    <option value="Option4">Option 4
9
    <option value="Option5">Option 5
10
</select>
11
12
<hr>
13
<p>The <code>size</code> attribute allows you to specify how many options should be shown to the user (without them needing to scroll).</p>
14
<p>More info: <a href="/html/tags/html_select_tag.cfm"><code>select</code></a>, <a href="/html/tags/html_option_tag.cfm"><code>option</code></a>.</p>