18-HTML Forms

0
263

This tutorial is all about 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].

 

 

Readers might read also:

 

 

Facebook Comments
(Visited 36 times, 1 visits today)

LEAVE A REPLY

Please enter your comment!
Please enter your name here