- Home -
- Introduction -
- Lists Tutorial -
- Tables Tutorial -
- Forms Tutorial -
- About us -
- Sitemap -
 

- Forms Tutorial -

Forms are objects on your page that interact with the user. There are different types of forms, but I will only teach you how to make text-boxes and buttons, which only require HTML. Some other forms need require some javascript. Now starting with-


- Text Boxes -

Text Boxes are interactive boxes within your page that contain text. They are usually used to insert html-code/javascript into a page without applying their effect. They are also used for large bodies of text that don't fit in a normal page design. They are interactive because the viewer can actually eliminate or add text from/to them.

To create a text-area on your page, insert the following into your <body> tag:

<form name="form1" method="post" action="">
<textarea name="textarea"></textarea></form>

Which will procude the following:

  • form name identifies the name of the form.
  • method identifies that the method is post.
  • action identifies the action that the form will take.
  • textarea identifies the type of form and views the text within the tag.
This form doesn't have too many properties, where you can only change its size.
  • to change the width of the text-box, put the following inside the <textarea> tag: cols="#"
  • to change the height of the text-box, put the following inside the <textarea> tag: rows="#"
  • e.g.( <textarea name="textarea" rows="15" cols="50"> )

Here's an example of a page with a text-box:
View Page


Basic HTML Tutorials, Anas Kaada Copyright © 2005, All rights Reserved.
All trademarks and logos featured are copyright © of their respective owners