Link of code:
//It doesn't even work in the lesson.
// Result: https://drive.google.com/file/d/1TDhWcCmllCnq9pAOsqxDUPFinsJSZIQB/view?usp=drivesdk
Mirielle👽 It does not work on some devices. This is probably a bug. Maybe it works fine in your device.
🅰🅹 - Pʀᴏᴅᴜᴄᴛ Mᴀɴᴀɢᴇʀ Yes it is working in w3schools. And also working on the sololearn website. But it's not running on the sololearn app.
ⓈⒶⓉⓃⒶⓂ I think it's a problem with Sololearn.
I have checked on w3schools it's working fine but same code from w3schools is not working here.
Datalist is more of a search or query suggestions in a form, it won't appear until you focus on the input.
edit: I checked your output and it shows there's so suggestion for "aud", however everything works fine for me
Firstly you should close the option tag and enter the value between the opening and closing tag
Like this <option value>Value should be here</option>.
Secondly datalist tag isn't working properly in sololearn I have also tried better move to this code
<select id="cars" name="cars">
<optgroup label="Big companies">
<option selected value="Audi">Audi</option>
It works for me (tested on SoloLearn app and Chrome - in a phone), the car brand list shows up, though I was expecting the list to show after I type something (like offering suggestion) rather than showing up on focus.
Great code anyways ⓈⒶⓉⓃⒶⓂ 👍
For me personally it does work maybe your browser does not know this tag so you can try opening this link in a different browser ...
Wishing you lots of success
post Scriptum. You should always have software installed on your computer. You can run the code on a real project and if you install updated and original software then all tags should work smoothly