An warware: shigarwar html ba za a iya gyarawa ba

Babban matsala tare da shigarwar HTML wanda ba a iya gyarawa shine yana iya zama da wahala a shigar da bayanai cikin tsari daidai. Idan mai amfani ya yi kuskure lokacin shigar da bayanan, yana iya zama da wahala a gyara.

<input type="text" name="name" value="John">

In order to make this input not editable, you would need to add the "readonly" attribute:

<input type="text" name="name" value="John" readonly>

Nau'in Shigar HTML5

HTML5 yana gabatar da adadin sabbin nau'ikan shigarwa, gami da rubutu, imel, url, lamba, da kwanan wata. Ana iya amfani da waษ—annan nau'ikan shigarwar tare da haษ—in gwiwa tare da kashi don bawa masu amfani damar shigar da bayanai a cikin shafin yanar gizon.

The kashi na iya karษ“ar kowane sabon nau'in shigarwa. Lokacin da mai amfani ya shigar da bayanai a cikin wani sinadarin da ke amfani da ษ—aya daga cikin sabbin nau'ikan shigar da bayanai, mai binciken zai canza wannan bayanan kai tsaye zuwa wani nau'i wanda shafin yanar gizon zai iya amfani da shi. Misali, idan mai amfani ya shigar da rubutu a cikin wani kashi ta amfani da nau'in rubutu, mai binciken zai canza wannan rubutun zuwa kirtani kuma ya sanya shi a cikin DOM na takaddar. Idan mai amfani ya shigar da adiresoshin imel a cikin wani kashi ta amfani da nau'in imel, mai binciken zai ฦ™irฦ™iri wani abu na imel kuma ya sanya shi a cikin DOM ษ—in daftarin aiki.

Shafi posts:

Leave a Comment