Can some one tell me ?
| SitePoint Sponsor |




Can some one tell me ?

One line of input of fixed length
<input type="text" maxlength="15">
Multiple lines of input of unlimited length
<textarea></textarea>
Stephen J Chapman
javascriptexample.net, Book Reviews, follow me on Twitter
HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
<input name="html5" type="text" required pattern="^$">
Use a text input field when you need something that is a single line of information - e.g. a name or an email address.
Use a textarea when you need information that may have multiple lines.

Text area should really only be used when you are going to be taking in a lot of text. You can use a text field to take in a large portion of text, but it just doesn't make sense on the user end.

...I think I clicked last. :-( Haha
Bookmarks