ITSourceCode.com

We Exist to Provide 100% Free Source Code and Tutorials

Custom Search

18-HTML Forms

HTML web forms are composed of  checkboxes, buttons and text input fields that are placed inside of HTML documents to collect user input. For instance, if the web forms have fields such as names, phone number, and email addresses, it give the users an opportunity to communicate directly with a web page.

 

Syntax:

 

<form>
form elements……..
</form>

 

Example:

 

<form name=”myForm” action=”action.php” method=”post”>
<input type=”checkbox” /> Checkbox<br />
<input type=”text” /> Input Field<br />
<input type=”submit” value=”Submit” />
</form>

 

HTML form elements depend on action and method attributes to distinguish where to send the data in the form for the operation [action] and what are the procedure of the data [method].

Facebook Comments

Check Your Domain Ranking

Leave a Reply

Your email address will not be published. Required fields are marked *

ITSourceCode.com © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!