+ 3

What does a <select> tag mean in html?

I haven't seen this in the html course or maybe can't remember it being in it, so what does it mean?

20th Jul 2017, 3:05 PM
DeltaTick
DeltaTick - avatar
2 odpowiedzi
+ 13
Creates a list with options... <select onchange=alert(event.target.value)> <option value=1 selected>1</option> <option value=2>2</option> <option disabled>3</option> </select>
20th Jul 2017, 3:10 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
It is used for drop down list. You can add <option> to it . Example: <select> <option>Red</option> <option>Blue</option> <option>Black</option> </select>
20th Jul 2017, 3:09 PM
Yasir Khan
Yasir Khan - avatar