- 1
How to use the <select > tag? Plzz i need examples and want to understand. I want to see codes and outputs
I don't know how to use
2 Réponses
0
Think of the select tag as a drop down menu because that's essentially what it is. The <select> tag just creates the menu element but a menu is not a menu without options right? That's what the <option> tags are for and they go within the select tag.
Example (HTML):
<select>
<option>Select a Sololearn crush...</option>
<option>@Tashi N</option>
<option>@Michelle</option>
</select>