Forms

 

Do you have a Facebook account? I�m sure you have one. To have an account, you must register, right? Of Course, Yes. You must register in order to have an account and you must fill up something which is called a FORM. In HTML, you can create a form to be use as a way to pass data from server to another server.

 

Tables are defined with the < table > tag.

 

The < input > element is considered as the most significant.

 

An < input > element can be of type text field, checkbox, password, radio button, submit button, and more.

 

Text Fields

The < input type="text" > delineate a one-line input field wherein a user can input text.

The codes above will interpret and display a form like this:


First name:

Last name:

 

Password Field

To delineate a form wherein you can input password, you must use < input type="password" >

The codes above will interpret and display a form like this:


Password:

 

Radio Buttons

You must use < input type="radio" > to have a radio button. These buttons let a user choose only one of the choices given.

The codes above will interpret and display a form like this:


Red
Blue
Yellow

 

Checkboxes

The < input type="checkbox" > displays a checkbox. These boxes let a user to choose 0 or more options of a limited number of selections available.