Article

Registration Form In HTML


Creating an HTML registration form entails the use of numerous form elements, such as text inputs, radio buttons, checkboxes, and buttons. Here's a simple HTML registration form example:

<h1>REGISTRATION FORM</h1>

<form action="signIn.html">

Enter User Id: <input type=text size=40 maxlength=15 value="Enter UR name">

<p>

Enter Password: <input type=password>

<p>

Address: <textarea rows=4 cols=40></textarea>

<p>

Gender: <input type=radio name=gender checked>Male<input type=radio name=gender>Female

<p>

Hobbies: <input type=checkbox>C

         <input type=checkbox>C++

<input type=checkbox>Dot net

<input type=checkbox>C#

<input type=checkbox>JAVA

<p>

Select UR Qualification: <select>

                         <option>Middle</option>

<option>Metric</option>

<option>sr.sec</option>

<option>Graduate</option>

  <option>Master</option>

                          </select>

<p>

Select UR Qualification: <select size=3 multiple>

                         <option>Middle</option>

<option>Metric</option>

<option>sr.sec</option>

<option>Graduate</option>

  <option>Master</option>

                          </select>

  

<p>

Upload UR Picture: <input type=file>

<p>

<input type=hidden>

<p>

<input type=button value="cick me">

<input type=reset  value="Reset form">

<input type=submit value="submit">   

</form>


In this example:

  • a).The form is created using the <form> element.
  • b).Form elements like text inputs, radio buttons, checkboxes, a dropdown (select), and a textarea are used to collect user information.
  • c). The required attribute is added to ensure that the required fields are filled out.
  • d). The form's action attribute specifies the URL where the form data will be sent for processing (e.g., to a server script).