0

How do I add a text under the html option tag?

Every word I type under it doesn't appear on the browser

29th Jan 2022, 11:21 AM
Abubakar Sadiq Adamu
Abubakar Sadiq Adamu - avatar
5 Answers
+ 2
Why you wanna add some text there?
29th Jan 2022, 12:26 PM
Ipang
30th Jan 2022, 9:12 AM
Dennis Kimathi
Dennis Kimathi - avatar
+ 1
I am trying to create an explanation under each option tag. How do I do that? Like... Add a paragraph or a list... Here is the codešŸ‘‡. The text under the options does not display in the output, how can I make it display? Thanks in advance https://code.sololearn.com/WWkrU1HLiaUl/?ref=app
29th Jan 2022, 7:57 PM
Abubakar Sadiq Adamu
Abubakar Sadiq Adamu - avatar
+ 1
You might wanna use some <optgroup> to display text between the options. But this isn't really a solution, because functionality speaking, <optgroup> was meant to group <option> elements by some category, not to display text. https://www.w3docs.com/learn-html/html-optgroup-tag.html
30th Jan 2022, 12:25 AM
Ipang
+ 1
Thanks so much guys. I really appreciate.
30th Jan 2022, 7:49 PM
Abubakar Sadiq Adamu
Abubakar Sadiq Adamu - avatar