Textboxes

This page contains textboxes. Feel free to copy and paste the textboxes into your own website, blog, MySpace page, or other HTML document. And feel free to modify the code as you wish.

Also, please consider keeping the link back to this website - if you do it will be very much appreciated!

What are Textboxes?

In HTML, textboxes are boxes containing text. Textboxes are normally used to allow the user to enter and submit multiple lines of text.

Textboxes are sometimes referred to as "comment boxes" because they enable the user to enter comments into a website. They are also known as "textareas". This is probably due to the fact that to create a textbox/textarea, you need to use the HTML textarea tag.

Basic HTML Textbox Code

As mentioned, to create textboxes, you need to use the textarea tag. When you use this tag, you need to specify how many columns wide and how many rows high the textbox should be.

To make the textbox actually do something, it needs to be submitted to an action page. This action page provides the programming logic to process the form data. In the example below, we nest the textarea within a form tag that specifies an action page using the action attribute.

Here's an example:

Source CodeResult

More Textbox Codes

You can do much more with textboxes. Below are links to pages that provide HTML code for different effects you can do with textboxes:

About the HTML Codes

The HTML code on this page is provided free of charge, for you to use however you wish. Feel free to modify the code to suit your own needs.

External Style Sheets

Most of the HTML codes on this website use inline CSS. If you intend to use the codes across your whole website, you should place the CSS into an external style sheet.

To learn more, check out this explanation of external style sheets.

Web Hosting

Our partner site, ZappyHost, is a professional web hosting company providing website hosting, domain names and related products. If you need web hosting, check them out!