HTML form tag tutorial (1):

HTML form tag tutorial (1): name The name of the form method Defines the method by which the form result is transmitted from the browser to the server. There are generally two methods: get and post action Used to define the location (relative or absolute address) of the form processing program (ASP, CGI, etc.) enctype Sets the encoding method of the form data target Sets the display method of the returned information

Forms are a major external form for implementing dynamic web pages. Forms and form fields do not have the ability to layout, and the production of form web pages must ultimately be organized by tables. HTML form is an important means for HTML pages to interact with browsers. Forms can be used to collect relevant information submitted by clients.
When browsing a website, you will often encounter forms, which are an important part of the website's interactive functions. No matter what language the website uses to implement the interactive functions of the website, such as ASP, PHP, and JSP, the form has become their unified external form.
The main function of a form is to collect information, specifically, to collect information from viewers. For example, if you want to apply for an email address online, you must fill out the form page provided by the website as required. The main content is personal information such as name, age, and contact information. For example, if you want to speak at a forum, you need to apply for qualifications before speaking and fill out a form on a web page.
Forms can be used for surveys, ordering, searching, and more. A general form consists of two parts: one is the HTML source code that describes the form elements, and the other is the client-side script, or the server-side program used to process the information filled in by the user. In HTML, we can define forms and coordinate them with server-side form processing programs such as CGI or ASP.
The process of form information processing is: when the submit button in the form is clicked, the information entered in the form will be uploaded to the server, and then processed by the relevant application in the server. After processing, the information submitted by the user will either be stored in the database on the server side, or the relevant information will be returned to the client browser.
A form is a specific area on a web page. This area is defined by a pair of <Form> tags. This step serves several purposes. First, limit the scope of the form. Other form objects need to be inserted into the form. When you click the Submit button, the content within the form is also submitted. Secondly, it carries relevant information about the form, such as the location of the script that processes the form, the method for submitting the form, etc. This information is not visible to the viewer, but is crucial for processing the form.
Basic syntax01 <Form name="Form_name" method="method" action="url" enctype="value" target="target_win"> 02 …… 03 </Form>
Syntax
The attributes of the <Form> tag are shown in the following table
property describe

<<:  Solve the problem that docker run or docker restart will automatically exit when starting the image

>>:  How to make if judgment in js as smooth as silk

Recommend

About MySQL 8.0.13 zip package installation method

MySQL 8.0.13 has a data folder by default. This f...

MySQL 5.7.18 free installation version window configuration method

This is my first blog. It’s about when I started ...

Detailed explanation of the problems and solutions caused by floating elements

1. Problem Multiple floating elements cannot expa...

Some tips on deep optimization to improve website access speed

Some tips for deep optimization to improve websit...

Keepalived+Nginx+Tomcat sample code to implement high-availability Web cluster

Keepalived+Nginx+Tomcat to achieve high availabil...

How to use vue.js to implement drag and drop function

Preface Adding drag and drop functionality is a g...

Detailed explanation of Vue Notepad example

This article example shares the specific code of ...

mysql5.7.21 utf8 encoding problem and solution in Mac environment

1. Goal: Change the value of character_set_server...

How to quickly install Nginx in Linux

Table of contents What is nginx 1. Download the r...

Docker Compose installation and usage steps

Table of contents 1. What is Docker Compose? 2. D...

Vue integrates a rich text editor that supports image zooming and dragging

need: According to business requirements, it is n...

How to use Vue3 asynchronous data loading component suspense

Table of contents Preface Creating Components Sum...

Detailed tutorial on deploying Django project using Docker on centos8

introduction In this article, we will introduce h...

MySQL 5.6 root password modification tutorial

1. After installing MySQL 5.6, it cannot be enabl...

8 tips for Vue that you will learn after reading it

1. Always use :key in v-for Using the key attribu...