How HTML forms work (pictures and text)

不言
Release: 2018-08-08 13:55:05
Original
7250 people have browsed it

The content this article brings to you is about the working principle of HTML forms (pictures and texts). It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

In front-end language writing, forms are a commonly used data transmission method, and it is also an effective and efficient method.

Its working principle is: access a page containing a form, enter the form information and then submit the form - through data, the form data sent by the browser page is packaged and sent to the server - the server accepts the data and is processed by the program Processing (various background programs PHP, .net), as shown in the figure below:

All form codes are placed in a pair In the entire code display, the form is invisible, that is, there is no border similar to a table

In the form, each form element makes up the entire form

Each form element represents a different meaning and implements different functions. constitutes the completed form.

Each element has roughly the same attributes. Take the input input box as an example:

You can put any attribute conditions allowed by the rules in it.

In the single-line text field, you can also set the scope of the text field, naming and other settings

Some form elements do not have corresponding closing elements, only themselves.

Recommended related articles:

HTML tag: Summary of usage of img tag

html layout: implementation code of html three-column layout

The above is the detailed content of How HTML forms work (pictures and text). 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