HTML CSS Reference/HTML Attributes Reference/maxlength

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

"maxlength" Example

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



maxlength is applied to

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



"maxlength" Syntax and Note

Note:
    
Sets the maximum number of characters in a text or password control. 
Not specified means no limit.
    
Syntax:
    
<input maxlength="value">