W3C home > Mailing lists > Public > www-validator@w3.org > May 2012

Use maxlength in textarea

From: Han <hvpost@gmail.com>
Date: Tue, 1 May 2012 15:21:37 +0200
Message-ID: <CAPAK9OyjqvUGJ4zEJR7L2TmWM5m3-vPpxjQEd+DocoyapiwAag@mail.gmail.com>
To: www-validator@w3.org
 Hello,

I use the following code:

<textarea name=\"c_opm\" rows=\"2\" cols=\"60\" maxlength=\"255\">" .
$c_opm . "</textarea>

when i use the HTML-validator the section over maxlength gives the error

 there is no attribute "MAXLENGTH"

I use this to limit the number off postions that the user can fill in, and
it works, but the attribute is not on
http://www.w3schools.com/tags/tag_textarea.aspr

Is it a general attribute or should it not be used?


H. Velthuis
Received on Wednesday, 2 May 2012 15:07:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 2 May 2012 15:07:20 GMT