+ 5

How to use the option tag in HTML

Breifly explain

21st Jul 2020, 3:06 PM
Ebube Amadi
Ebube Amadi - avatar
3 Respostas
+ 5
Thanks guys
21st Jul 2020, 3:38 PM
Ebube Amadi
Ebube Amadi - avatar
+ 1
it is used for options for a input field. e. g. you have an input field for fruit name... you can give the user some options like mango, apple. when the user clicks the input field, options will be shown. wait for the code... (will edit and provide the code to you) edit: your solution https://code.sololearn.com/Wy73t78NNNhg/?ref=app
21st Jul 2020, 3:13 PM
Kashyap Kumar
Kashyap Kumar - avatar
+ 1
The <option> tag in HTML is used to choose an option from a Drop-Down menu. This tag can be used with or without any attributes and needed value can be sent to the server. The group of options can be created using <optgroup> tag. It creates the group of related menu items. Syntax: <option> Contents... </option> Here is the code... https://code.sololearn.com/WmV6huXz84wX/?ref=app
21st Jul 2020, 3:15 PM
123