What's the difference among these three syntax for option? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 3

What's the difference among these three syntax for option?

As far as I see all of the option tags below do the same thing. I wonder what are their differences and usage. <datalist id="list"> <option value="1"> <option value="2"><\option> <option value="3">A text<\option> <\datalist>

14th May 2021, 10:32 PM
Koorosh Nobakhtfar
Koorosh Nobakhtfar - avatar
1 Resposta
+ 3
1st option = showing nothing outside of the tag 2nd option = The tag option is ended 3rd option = is showing between of tags "A text"
14th May 2021, 11:25 PM
Katdotbrush
Katdotbrush - avatar