Babban matsalar da ke da alaฦa da HTML
<datalist id="browsers"> <option value="Chrome"> <option value="Firefox"> <option value="Internet Explorer"> <option value="Opera"> <option value="Safari"> </datalist>
1. Wannan lambar tana haifar da wani abu na HTML da ake kira datalist, wanda ake amfani da shi don ฦirฦirar jerin zaษuษษuka don filin shigarwa.
2. Lissafin bayanai yana da sifa ta โbrowserโ.
3. A cikin ma'aunin bayanai, akwai abubuwa guda biyar, kowannensu yana da sifa mai ฦima wanda ke ษauke da sunan mai binciken gidan yanar gizo (Chrome, Firefox, Internet Explorer, Opera da Safari).
4. Za a yi amfani da waษannan ฦimar azaman shawarwari lokacin da mai amfani ya shiga cikin filin shigarwa mai alaฦa da wannan jerin bayanai.
Menene alamar lissafin bayanai
HTML da
Menene bambanci tsakanin Datalist da dropdown
A Datalist wani abu ne na HTML wanda ke ba da jerin zaษuษษuka don mai amfani don zaษar daga. Yana kama da menu na zazzagewa, amma babban bambanci shine yana bawa masu amfani damar shigar da ฦimar su. Mai amfani zai iya rubuta a cikin filin shigarwa kuma lissafin bayanai zai ba da shawarwari dangane da abin da suka buga. Menu na zazzagewa, a gefe guda, yana bawa masu amfani damar zaษar daga zaษuษษukan da aka riga aka ayyana. Bugu da ฦari, tare da lissafin bayanai, masu amfani za su iya rubuta kowace ฦima da suke so ko da ba a jera ta azaman zaษi ba.
Yadda ake amfani da lissafin bayanai a cikin HTML
HTML da
Don amfani da kashi na lissafin bayanai, da farko kuna buฦatar ฦirฦirar fom na HTML tare da wani element kuma ku ba shi sifa ta id. Sa'an nan, za ka iya ฦara da lissafin bayanai a cikin tsari da kuma saita ta lissafin sifa daidai da id na shigar da filin. A cikin lissafin bayanai, zaku iya ฦara ษaya ko fiye
Misali: