Check HTML Forms from Coding section on e akhabaar
HTML forms are special kind of HTMLpage that can be used to pass data to a server. Once the server gets the data, it may manipulate the data and send some of it back, or it may store it into a database for later use.
An HTML form will contain input elements like lables, text fields, check boxes, radio-select-buttons, submit buttons, and more. A form can also present lists, from which the user can also present lists, from which the user can make a selection, or a text area where multi-line typing is allowed.
The basic structure of a form is as follows:
The form tags go inside the
tag. The data in the form is sent to the page specified in the form’s action attribute. The file defined in the action attribute usually does something with the received input :The Input tag
The most common form element is the element, which is used to collect information from the user. An element has several variations, which depend on the type attribute. An element , so you can refer to it later.
In general, the sysntax is :
An element can be of type text, checkbox, password, radio button , submit button, and more. The common types are described.
Text Fields
defines a one-line input field that a user can enter text into:
Password Field
defines password field. The password field is just like the text field, except the text that is typed in is not displayed on the screen.
Password:
Note that a password field doesn’t secure the data, it only hides it on the screen.
Radio Buttons
defines a radio button. Radio buttons let a user select one (and only one) of a limited number of presented choices :
Checkboxes
Submit Button
defines the submit button.
A submit button is used when the user has filled in the form, and is ready to send (“submit”) the data they entered to the server. The data is sent to the page specified in the form’s action attribute.
Post your more queries related to HTML Forms below.