HTML Form

  HTML Form

An HTML Form have input elements like text fields, password fields, checkboxe, radio-buttons, submit buttons and many more.
Eg.
<form method="get" action="page_url">
       
Enter your name<input type="text"/>
       
Enter your email<input type="email"/>
       
<input type="submit"/>
    
</form>

Enter your name Enter your email


  HTML Text_Field

Eg.
<form method="get" action="page_url">
       
Enter your name<input type="text"/>
    
</form>

Enter your name


  HTML Emai_Field

Eg.
<form method="get" action="page_url">
       
Enter your email<input type="email"/>
    
</form>

Enter your email


  HTML Password_Field

Eg.
<form method="get" action="page_url">
       
Enter your password<input type="password"/>
    
</form>

Enter your password


  HTML Radio Button

Eg.
<form method="get" action="page_url">
       
Gender
Male :<input type="radio" name="rad" value="0"/> Female :<input type="radio" name="rad" value="1"/> </form>

Gender
Male : Female :


  HTML Checkbox

Eg.
<form method="get" action="page_url">
       
Hobby
Singing :<input type="checkbox" name="ck1" />
Dancing :<input type="checkbox" name="ck2" />
Reading :<input type="checkbox" name="ck3" />
</form>

Hobby
Singing :
Dancing :
Reading :


  HTML Select (Dropdown)

Eg.
<form method="get" action="page_url">
Country:
<select>
<option selected="selected" disabled="disabled" >select the country</option>
<option>India</option>
<option>China</option>
<option>America</option>
</select> </form>

Country:

  HTML File upload

Eg.
<form method="get" action="page_url">
       
Upload Resume:
<input type="file" name="file_name" />
</form>

Upload Resume


<<   Previous Chapter   >>                     <<   Next Chapter   >>



No comments:

Post a Comment