/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: maxlength

[this page | pdf | back links]

The HTML maxlength attribute specifies the maximum number of characters allowed in an <input> or <textarea> element.

 

Valid attribute values (when used with <input> and <textarea> elements) include:

 

Value

Description

integer

Maximum number of characters allowed to be inputted using element

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile