<textarea> and </textarea>

PURPOSE: To make a box to type in text using columns and rows to define its size

Below is a basic html document. The referenced html tag is in RED. All tags must have a start and a end tag. Most end tags have a / before the tags name, however there are a few that are done differently. The tags that end differently will be noted and highlighted. The order of the start and end tags is also very important to proper display of your page in a web browser.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title> The Page Title Goes Here </title>
</head>
<body>
<form method="post" action="mailto:somebody@somewhere.com" type="text/plain">
<p>
Add any comments below:<br />
<textarea cols="40" rows="10" name="comments"></textarea>
</p>
<p>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</p>
</form>
</body>
</html>


Add any comments below:


To add text inside to the textarea box itself add the text in between the tags like so:

<textarea cols="40" rows="10" name="comments">This is the text</textarea>


© Copyright 2001,2002 Southern Twilight    All rights reserved.

Back To HTML Examples