SELECT
Tag
The <select> tag is used to create a select list.
A select list offers a selection of choices from which you may choose one or more items.
This tag delimits the beginning and end of the select list.
It also serves as a container element for a collection of <option>
elements where each <option>
element contains one item to be displayed in the list.
For example,
<select>
<option>text</option>
<option>text</option>
</select>
Some of its attributes are
name
: Names the variable that is set with the result of the selection.
title
: Provides a string or text used to describe or provide additional information about the link.
multiple
: Sets whether multiple items can be selected. Default is false
.
OPTION
Tag
The <option> tag serves as a container for one item that is listed as a choice in a select list.
A string or text describing the item appears between the opening and closing <option>
tags.
For example,
<option>
..text
..<img>
..<onevent>
</option>
Some of its attributes are
value
: Sets the value to be used when setting the name
variable in the <select>
element.
onpick
: Provides the URL that is to be loaded when the item in the <option>
element is selected or unselected.