Monday, 20 October 2014

Learn HTML online for beginners part 10 insert form and input, password box, radio button, checkbox, submit button

HTML form and Input


HTML forms

HTML forms are used to pass data to a server

A form can contain input element like text feild, check boxes, radio-button, submit buttons and more.

The <form> tag is used to create an HTML form.

Example


<form>
First name:<input type="text"/><br/> last name:<input type="text"/>
</form>

Password feild


<form>
password:<input type="password" name="pwd"/>
</form>

Radio Button

<form>
<input type="radio" name="sex" value="male"/>male</br>
<input type="radio" name="sex" value="female"/>female
</form>

checkboxes

<form>
<input type="checkbox" name="vehicle" value="bike"/>I have a bike</br>
<input type="checkbox" name="vehicle" value="car"/>I have a car
</form>



Submit Button

<form>
<form name="input" action="html_form_action.asp" method="get">
username:<input type="text" name="user"/>
<input type="submit" value="submit"/>
</form>






No comments:

Post a Comment