HTML Form
So Today I will discuss you about the HTML form and there tags which I will use in form tag
HTML Form
An HTML form facilitates the user to enter data that is to be sent to the server for processing such as name, email address, password, phone number, etc
Why We Use HTML Form
HTML Form is important just because if someone visits your site and if they have any requirement and feedback and purchase any product on the internet so the visitor has to fill the form.
HTML Form Syntax
.
form elements
.
Note — here action represent the other page url and method is used for security purpose only there is two methods one is get method and another is post method .
HTML element
The element can be displayed in many ways, depending on the type attributes
Here are some examples of type Attribute
Type Attribute DescriptionDisplays a single-line text input fieldDisplays a radio button (for selecting one of many choices)Displays a checkbox (for selecting zero or more of many choices)Displays a submit button (for submitting the form)Displays a clickable button
Input Text Fields
The input type text single-line text input field
Example-
Text input fields
First name:
Last name:
Output-
Radio Buttons
The defines a radio button.
Example-
Radio Buttons
Male
Female
Other
Get coders village’s stories in your inbox
Join Medium for free to get updates from this writer.
Output-
Checkboxes
The defines a checkbox.
Example-
Checkboxes
The input type=”checkbox” defines a checkbox:
I have a house
I have a car
I have a boat
Output-
The Submit Button
The defines a button for submitting the form data to a form-handler.
Form handler is specified in the form’s action attribute.
Example-
HTML Forms
First name:
Last name:
If you click the “Submit” button, the form-data will be sent to a other page that is “/action_page.php”.
Output-
More Articles-
- Introduction to HTML with Hello world
- HTML Text Editor
- HTML Basics
- HTML Tags
- HTML Attributes
- HTML Heading tag
- HTML Phrase Tags
- HTML Table
- HTML List
- HTML Description List
- HTML Unordered list
Follow us on Social Account — Twitter , Instagram, facebook , linkedin




