Thursday 21 August 2014

HTML: Fixed Size , Resizable Text Area and character limit.

Text Area are mostly used for data entry in web forms. They could be resizable on run-time and can also be created with fixed size having particular width and height.


Resizable Text Area:

Below I am showing a Resizable text area and its respective code which I have used to create it.

Below is the html code that has been used to create Resizable text area.


<textarea style="height: 134px; width: 296px;">Resizable Text Area</textarea>


Fixed Size Text Area & character limit fixed:

Now next I am going to show an example of fixed size Text Area.


Here is the html source used to create Fixed Size Text Area:

<textarea style="height: 134px; resize: none; width: 296px;" maxlength="50">Fixed Size Text Area</textarea>

No comments:

Post a Comment