HTML CSS Reference/HTML Attributes Reference/maxlength

Материал из Web эксперт
Перейти к: навигация, поиск

"maxlength" Example

   <source lang="html4strict">
   

<HTML> <head><Title>Example For maxlength</Title></head> <BODY> <form> <input type="password" name="text1" maxlength="10"> </form> </BODY> </HTML>


     </source>
   
  


maxlength is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<input type="password"> <input type="text"> | +----------------+--------------------------------------------------------------+

     </source>
   
  


"maxlength" Syntax and Note

   <source lang="html4strict">

Note:

Sets the maximum number of characters in a text or password control. Not specified means no limit.

Syntax:

<input maxlength="value">


     </source>