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:
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
Text Area
Drop-Down Menu
Hidden Field
Password
Radio Buttons
Check boxes
I hope this helps you to create your first HTML form!
A demo can be found be clicking here.
Thanks guys.
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:name@site.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:
Password <input type="password" name="code" value="" size="10">
Radio Buttons
Code:
<input type="radio" name="radio field" value="no1"> Option 1
<input type="radio" name="radio field" value="no2" checked="checked"> Option 2
Check boxes
Code:
<input type="checkbox" name="check1" value="chosed"> Option 1
<input type="checkbox" name="check2" value="chosed" checked="checked"> Option 2
I hope this helps you to create your first HTML form!
A demo can be found be clicking here.
Thanks guys.