in English
Itsinda ryinjiza
Byoroshye kwagura form igenzura wongeyeho inyandiko, buto, cyangwa buto yitsinda kumpande zombi zinjiza inyandiko, guhitamo ibicuruzwa, hamwe nibisobanuro bya dosiye.
Urugero rwibanze
Shyira kongeramo imwe cyangwa buto kumpande zombi zinjiza. Urashobora kandi gushyira imwe kumpande zombi zinjiza. Wibuke gushyira <label>
s hanze yinjiza itsinda.
Gupfunyika
Amatsinda yinjiza apfunyika kubisanzwe binyuze flex-wrap: wrap
murwego rwo kwakira imiterere yumurima wemewe mumatsinda yinjiza. Urashobora guhagarika ibi hamwe .flex-nowrap
.
Ingano
Ongeraho ifishi igereranya ibyiciro .input-group
ubwabyo nibirimo imbere bizahita bihinduka - nta mpamvu yo gusubiramo ifishi yo kugenzura ingano kuri buri kintu.
Kugereranya kumurongo winjiza mumatsinda yibintu ntabwo ashyigikiwe.
Agasanduku na radiyo
Shira agasanduku ako ari ko kose cyangwa radio ihitamo mumatsinda yinjiza ya addon aho kwandika.
Mugihe byinshi <input>
s bishyigikiwe muburyo bugaragara, uburyo bwo kwemeza buraboneka gusa kumatsinda yinjiza hamwe numwe <input>
.
Inyongera nyinshi
Ibintu byinshi byongeweho birashyigikirwa kandi birashobora kuvangwa na chequebox na verisiyo yinjiza radio.
Amatsinda yinjiza arimo inkunga kubintu byatoranijwe hamwe na dosiye yihariye. Mucukumbuzi isanzwe verisiyo ntabwo ishyigikiwe.
Hitamo
Kuboneka
Menya neza ko igenzura ryose rifite izina ryoroshye kugirango intego zabo zishobore kugezwa kubakoresha ikorana buhanga. Inzira yoroshye yo kubigeraho ni ugukoresha ikintu <label>
, cyangwa - mugihe cya buto - gushyiramo inyandiko isobanura bihagije nkigice <button>...</button>
cyibirimo.
Kubihe bidashoboka gushyiramo inyandiko igaragara <label>
cyangwa ikwiye, hari ubundi buryo bwo gukomeza gutanga izina ryoroshye, nka:
<label>
ibintu byihishe ukoresheje .visually-hidden
urwego
- Kwerekana ikintu kiriho gishobora gukora nkikirango ukoresheje
aria-labelledby
- Gutanga
title
ikiranga
- Gushiraho neza izina ryoroshye kubintu ukoresheje
aria-label
Niba ntanumwe muribi uhari, tekinoroji ifasha irashobora kwifashisha placeholder
ikiranga nkigisubizo cyizina ryoroshye kuri <input>
nibintu <textarea>
. Ingero ziri muri iki gice zitanga ibitekerezo bike, uburyo bwihariye.
Mugihe ukoresheje ibintu byihishe muburyo bugaragara ( .sr-only
,, aria-label
ndetse placeholder
nibirimo, bizimira iyo ifishi yumurongo ifite ibirimo) bizagirira akamaro abakoresha ikoranabuhanga rifasha, kubura inyandiko yibirango bigaragara birashobora kuba ikibazo kubakoresha bamwe. Ubwoko bumwe bwibirango bigaragara muri rusange ni inzira nziza, haba kubigeraho no gukoreshwa.