HTML Forms

Previous
Next

HTML Forms and Elements:

  • HTML forms are used to collect user input.
  • HTML forms are useful in web development.
  • Forms enable website users to submit data via the web pages.
  • HTML forms contain form elements.
  • Form elements are different types like input elements, checkboxes, radio buttons, submit buttons, and many more.
  • The <form> element defines an HTML form :
<form>
	......
	form elements
	......
</form>

The <form> tag has three properties (or attributes) that control how and where the form is processed.

PropertyDescription
nameAllows you to identify different forms
methodpost – sends form to the server get – brings info from the server
actionDestination form or webpage

Syntax:            

<form name=”Test” method=”post” action=”destination.html”>

Previous
Next

Courses Enquiry Form