Skip to content

HTML Text Box Code

February 28, 2010

You can use the following code as a basis for adding a text box to your website. This will enable your users to provide multi-line comments. Most browsers will render scroll bars on the text box as soon as its contents (i.e. users’ comments) are too big for it.

To use this text box code, simply copy and paste it into your website and change the values to suit.

This HTML Text Box Code…

<form method=”post” action=””>
<textarea name=”comments” cols=”40″ rows=”5″>
Enter your comments here…
</textarea><br>
<input type=”submit” value=”Submit” />
</form>

…results in the following text box:

Enter your comments here…

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: