[HTML] [attributo] maxlenght

maxlenght (attributo base HTML) stabilisce, ove applicabile, il numero massimo dei caratteri ammessi nel campo del tag HTML cui acceda.

tag

valore

<input>

maxlenght = "[numero]" (solo se attributo HTML type = email|password|search|tel|text|url)

<textarea>

Come sopra.

Esempio

<input type="text" maxlength="3" placeholder="max 3 caratteri">
<textarea maxlength="10">max 10 caratteri</textarea>


attributi base html, html

Related Articles

0 Comment

Rispondi