Home  >  Article  >  Web Front-end  >  How HTML forms work (pictures and text)

How HTML forms work (pictures and text)

不言
不言Original
2018-08-08 13:55:057099browse

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!

Statement:
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