McStormify Administrator Posts : 75 Tokens : 87
| Subject: HTML Form Thu Oct 28, 2010 12:49 pm | |
| HTML Form A form for your websites!
|
Hi there! Today, I'm going to teach you how to make a HTML form. It is very easy to make a HTML form. A simple form with the text area and Send Button: - Code:
-
<form method="post" action="mailto:emailaddress@host.com"> <input type="text" name="body"> <input type="submit" value="Send"> </form> All you have to do is replace the "emailaddress@host.com" with your e-mail address.
There are three main tags in a HTML form. <input>, <select> and <textarea>. Here are the codes for various fields that may help with your HTML form! Textbox - Code:
-
<input type="text" value="content" name="a name" size="25"> Text Area - Code:
-
<textarea name="a name" rows="6" cols="20"> </textarea> Drop-Down Menu - Code:
-
<select size="1" name="menu"> <option>no. 1</option> <option selected="selected">no. 2</option> <option>no. 3</option> </select> Hidden Field - Code:
-
<input type="hidden" name="hidden" value="something secret stands here"> Password - Code:
-
<input type="password" name="code" value="my password" size="10"> Radio Buttons - Code:
-
<input type="radio" name="radio field" value="no1"> <input type="radio" name="radio field" value="no2" checked="checked"> Check boxes - Code:
-
<input type="checkbox" name="check1" value="chosed"> <input type="checkbox" name="check2" value="chosed" checked="checked"> I hope this helps you to create your first HTML form! Thanks guys.
| Notice : This tutorial is copyrighted by Extreme Coding. You may not publish it on anywhere without written permission from the administrators. |
|
|