1 Creating HTML Forms Wed Jul 21, 2010 4:39 pm
Unknown Data
Registered Member
Creating HTML Forms Working with HTML forms and its elements |
This tutorial will learn you how to make forms, that can be used to collect and send information from your website. As many other things in HTML, is it quiet easy to make a form. All we have to use is a couple of tags and attributes. This code would make a text area and a send button.
Let's take a look You should always start you form with <form> and close it with </form>. In the tag we'll input some attributes (method and action), that will show us, what there is going to happen.
A form is actually nothing but some columns that can contain different information. The attribute action, is pointing on the program/script that should handle the information. Fields <input>, <select> and <textarea> is used to make fields in the form. I'll show you some descriptions of the types of fields. Textbox:
• With the value, can we chose a predetermined value - the text standing in the field before a user write something. • The attribute name, is used to associate a name to some information there will be written in the field. • The attribute size, indicates the length of the field. • Notice that the tag <input>, will not be closed. Textarea:
• <textarea> will be closed, unlike <input>. Checkbox:
Radio buttons:
Drop-down menu:
• There should be using to tags to make a drop-down menu and both should be closed (<select> and <option>). • If you wish a no. as the first chosen possibility, can we use this tag: selected="selected". Password:
Hidden fields:
Buttons Send/Submit:
Reset:
File:
WebArtz Online HTML Editor |
Notice : This tutorial is copyrighted by WebArtz Forum. You may not publish it on anywhere without written permission from the administrators. |
Last edited by Unknown Data on Thu Sep 23, 2010 12:07 am; edited 1 time in total