in English
Iqela longeniso
Yandisa ngokulula ulawulo lwefomu ngokongeza okubhaliweyo, amaqhosha, okanye amaqela amaqhosha macala omabini amagalelo okubhaliweyo, ukhetho lwesiko, kunye negalelo lefayile yesiko.
Umzekelo osisiseko
Beka i-add-on enye okanye iqhosha macala omabini wegalelo. Usenokubeka enye kumacala omabini egalelo. Khumbula ukubeka <label>
ngaphandle kweqela legalelo.
Ukusonga
Amaqela ongeniso asonga ngokungagqibekanga flex-wrap: wrap
ukuze avumele uqinisekiso lwendawo yesiko phakathi kweqela legalelo. Ungayicima le nto nge .flex-nowrap
.
Ubungakanani
Yongeza iiklasi zokulinganisa ifom ehambelana .input-group
nayo kwaye iziqulatho ngaphakathi ziya kwenza ubungakanani kwakhona ngokuzenzekelayo-akukho mfuneko yokuphinda iiklasi zolawulo lwefom kwinto nganye.
Ubungakanani beqela leqela ngalinye abuxhaswa.
Iibhokisi zokutshekisha kunye noonomathotholo
Beka nayiphi na ibhokisi yokukhangela okanye irediyo ukhetho phakathi kweaddon yeqela longeniso endaweni yokubhaliweyo.
Ngelixa ii-multiples <input>
zixhaswa ngokubonwayo, izimbo zokuqinisekisa zifumaneka kuphela kumaqela egalelo anenye <input>
.
Ii-addon ezininzi
Ii-add-ons ezininzi zixhaswa kwaye zinokuxutywa kunye nebhokisi yokukhangela kunye neenguqulelo zegalelo lerediyo.
Amaqela eengeniso aquka inkxaso yokhetho lwesiko kunye negalelo lefayile yesiko. Iinguqulelo ezisisiseko zesikhangeli azixhaswanga.
Ukukhetha ngokwesiko
Ukufikeleleka
Qinisekisa ukuba zonke iifom zolawulo zinegama elifanelekileyo elifikelelekayo ukuze injongo yazo idluliselwe kubasebenzisi bobuchwephesha bokuncedisa. Indlela elula yokufezekisa oku kukusebenzisa i- <label>
element, okanye-kwimeko yamaqhosha-ukubandakanya isicatshulwa esichaza ngokwaneleyo njengenxalenye <button>...</button>
yomxholo.
Kwiimeko apho kungakwazekiyo ukubandakanya <label>
umxholo wombhalo obonakalayo okanye ofanelekileyo, kukho iindlela ezizezinye zokubonelela ngegama elifikelelekayo, elifana ne:
<label>
izinto ezifihliweyo kusetyenziswa .visually-hidden
iklasi
- Ukwalatha kwinto ekhoyo enokuthi isebenze njengeleyibhile esetyenziswayo
aria-labelledby
- Ukubonelela
title
ngophawu
- Ukuseta ngokucacileyo igama elifikelelekayo kwinto usebenzisa
aria-label
Ukuba akukho nanye kwezi ekhoyo, ubuchwephesha obuncedisayo busenokubhenela ekusebenziseni placeholder
uphawu njengomba wokubuyela umva wegama elifikelelekayo <input>
kunye <textarea>
nezinto. Imizekelo ekweli candelo ibonelela ngeendlela ezimbalwa ezicetyisiweyo, ezijongene nemeko ethile.
Ngelixa usebenzisa umxholo ofihliweyo obonakalayo ( .sr-only
, aria-label
, kunye placeholder
nomxholo, onyamalalayo xa ifom yefom inomxholo) iya kuba luncedo kubasebenzisi bobuchwephesha abancedisayo, ukungabikho kombhalo welebula ebonakalayo kusenokuba yingxaki kubasebenzisi abathile. Olunye uhlobo lweleyibhile ebonakalayo ngokubanzi yeyona ndlela ilungileyo, yokufikeleleka kunye nokusebenziseka.