Friday, April 8, 2011

Text Areas in HTML

The text area is similar to the text field that can put their text on the box. While the text area has a text fields that can span several lines. Unlike most other form fields, text areas are not defined with an input tag.

Source Code:

<!DOCTYPE html>

<html>
<head>
<title>Text Areas</title>
</head>

<body>
<b>Text Area:</b><br/>

<p>
<textarea name="textarea" rows= "10" cols = "30" >
</p>

</body>
</html>


Rows - You can specify the depth of the text area.

Cols - You can specify the width of the text area.

Wrap = "Physical" - it allows the text to wrap in the box as it is entered. it is optional if you want to use.

Output:













This is the output that the user input a lorem ipsum. Now you can try by your own. If you have a clarification leave a comment for this page. Thank for your time reading my blog.

No comments:

Post a Comment