Skip to content Skip to sidebar Skip to footer

How to Create a Registration Form with HTML (Complete+Image)

A website is built not only used to provide information to users or users. However, the website can also be used to obtain information such as personal data from website visitors. How to? Yes of course by using the form.

How to Create a Registration Form with HTML

To create a simple registration form in HTML is very easy. There are two ways that you can use, namely by using a table and you can also use a div. However, in this article, we will discuss how to create a simple registration form using a table. Immediately, please refer to the steps below.

1. Before creating the table, make sure how many columns and how many rows you want to create. For example, here we will create 9 rows and 3 columns. For more details, please pay attention to the script or code below.

/td>

So, to create a table, you must use the tag

. Meanwhile, to create rows in your table use the tag

and column using tag

is 9 and every inside tag

there is a tag

. You can notice in the script above, the number of tags

each of which is 3.

2. Next, please fill in each row and column according to your needs and desires. Generally a form consists of, Name, Place of Birth, Date of Birth, Gender, and so on. And of course there is a button to save and cancel. For example, you can look at the script below.

Nama Lengkap:
Tempat Lahir:
Tanggal Lahir:
Jenis Kelamin:PriaPerempuan
Alamat:
E-mail:
No Hp:
Kota:
  

Things you need to pay attention to when creating a registration form:

  • All input fields use tag
  • For Name and Place of Birth use type=”text”
  • Date of Birth use type=”date”
  • Gender use type=”radio” and add attributes name. The value in the name attribute must be the same, for example for men name=”gender” , so for women you must use the same value. Because if you create a different name value, the user or users can choose more than one answer.
  • Address use tags