what is html form

青灯夜游
Release: 2023-01-05 16:14:27
Original
3403 people have browsed it

HTML form is an area containing form elements, used to collect different types of user input; form elements are elements that allow users to enter information in the form; forms are defined using the form tag "

".

what is html form

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

The most important performance of the form is to receive the user's information on the client, and then submit the data to the background program to manipulate the data. From a technical concept, the form is used to operate the form object, and the object is A basic data type.

HTML form is an area containing form elements, used to collect different types of user input; form elements allow users to enter text fields in the form (such as: text fields, drop-down lists, radio buttons, check boxes, etc. etc.) element for entering information; forms are defined using the form tag ().

Create a form:

A form is created through the tag, where the form objects such as form fields, buttons and other things are placed

Example

<form>
 .
form elements
 .
</form>
Copy after login

HTML forms contain form elements.

Form elements refer to different types of input elements, check boxes, radio buttons, submit buttons, etc.

HTML Form attributes

HTML element, with all possible attributes set, is like this:

##AttributeDescriptionaccept-charsetSpecifies the character set used in the submitted form (default: page character set) . actionThe address (URL) that specifies where to submit the form (submission page). autocompleteSpecifies that the browser should automatically complete the form (default: on). enctypeSpecifies the encoding of submitted data (default: url-encoded). methodSpecifies the HTTP method used when submitting the form (default: GET). name Specifies the name by which the form is identified (for DOM use: document.forms.name). novalidateSpecifies that the browser does not validate the form. targetSpecifies the target of the address in the action attribute (default: _self).
Recommended tutorial: "

html video tutorial"

The above is the detailed content of what is html form. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template