You are here: Re: Pondering a confusing MaxLength attribute behavior « HTML « IT news, forums, messages
Re: Pondering a confusing MaxLength attribute behavior

Posted by Chris Beall on 11/17/16 11:29

clintonG wrote:
> Hmmm... I seem to have lost all understanding of how some HTML elements
> function.
> Example...
>
> <textarea multiline="2" maxlength="2"></textarea>
> <br />
> <input maxlength="2" />
>
> Why does the textarea not prevent entering more characters than its
> maxlength value the same way the input element will?
>
> <%= Clinton Gallagher
>
>
Clinton,

See http://www.w3.org/TR/html401/interact/forms.html#edef-TEXTAREA

multiline and maxlength are not attributes of the textarea element.

See http://www.w3.org/TR/html401/index/attributes.html

multiline is not an HTML attribute at all.

Perhaps you are thinking of some other language?

Chris Beall

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация