What maxlength attribute do in html? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

What maxlength attribute do in html?

I did not understand the function of maxlength attribute. Please help if you know what it does.Please explain?

26th May 2017, 7:34 AM
Prajwal Agarwal
Prajwal Agarwal - avatar
4 Respostas
+ 6
It sets a limit to input
26th May 2017, 7:35 AM
Ekansh
+ 4
it set limit for input size <input type="text" maxlength="30"> now you can't enter more then 30 characters in input text field
26th May 2017, 7:39 AM
Dhruv Saxena
Dhruv Saxena - avatar
+ 4
@Prajwal, How means? Dhruv gave you the code. Do you want to know internal working of it?
26th May 2017, 7:54 AM
Sachin Artani
Sachin Artani - avatar
+ 1
How?
26th May 2017, 7:36 AM
Prajwal Agarwal
Prajwal Agarwal - avatar