Certified PHP Developer Learning Resources Create a Basic Form

Create a Basic Form
 


HTML forms are used to pass data to a server.
An HTML form can contain input elements like text fields, checkboxes, radio-buttons, submit buttons and more. A form can also contain select lists, textarea, fieldset, legend, and label elements.

The

tag is used to create an HTML form:

.
input elements
.


The Input Element
The most important form element is the element.

The element is used to select user information.

An element can vary in many ways, depending on the type attribute. An element can be of type text field, checkbox, password, radio button, submit button, and more.

 

Here is an example HTML form:

Example #1 A simple HTML form


 

Your name:


 

Your age:


 




There is nothing special about this form. It is a straight HTML form with no special tags of any kind.

 For Support