search
HomeWeb Front-endHTML TutorialHTML form markup tutorial (1):_HTML/Xhtml_Web page production

HTML form markup tutorial (1):_HTML/Xhtml_Web page production

May 16, 2016 pm 04:45 PM
informationdeal withsubmitTutorialservermarkprogramwebsiteform


Form is a main external form to implement dynamic web pages. Forms and form fields do not have the ability to be typed, and the production of form web pages must ultimately be organized by tables. HTML forms are an important means for interaction between HTML pages and browsers. Forms can be used to collect relevant information submitted by clients.
You often encounter forms when browsing websites, which are an important part of the website's interactive functionality. No matter what form of language the website uses to realize the interactive functions of the website, such as ASP, PHP, JSP, forms have become their unified external form.
The main function of the form is to collect information, specifically the visitor’s information. For example, if you want to apply for an e-mail online, you must fill in the form page provided by the website as required. The main content is your name, age, contact information and other personal information. For another example, if you want to speak on a forum, you need to apply for qualifications before speaking, and you also need to fill out a form page.
Forms can be used for surveys, orders, searches, etc. 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 cooperate 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 user The submitted information is stored in the server-side database, or relevant information is returned to the client browser.
A form is a specific area on a web page. This area is defined by a pair of
tags. This step serves several purposes. The first aspect is to limit the scope of the form. Other form objects must be inserted into the form. When you click the submit button, the content within the scope of the form is also submitted. The second aspect is to carry relevant information about the form, such as the location of the script that processes the form, the method of submitting the form, etc. This information is invisible to the viewer, but it does play a decisive role in processing the form.
basic grammar 01
02 …… 03
Grammar explanation The attributes of the
tag are as shown in the table below Properties Description name form name method Define the method for transmitting form results from the browser to the server. There are generally two methods: get and post. action Used to define the location (relative address or absolute address) of the form processing program (ASP, CGI, etc.) enctype Set the encoding method of form data target Set the display method of returned information
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
What is the root tag in an HTML document?What is the root tag in an HTML document?Apr 29, 2025 am 12:10 AM

TheroottaginanHTMLdocumentis.Itservesasthetop-levelelementthatencapsulatesallothercontent,ensuringproperdocumentstructureandbrowserparsing.

Are the HTML tags and elements the same thing?Are the HTML tags and elements the same thing?Apr 28, 2025 pm 05:44 PM

The article explains that HTML tags are syntax markers used to define elements, while elements are complete units including tags and content. They work together to structure webpages.Character count: 159

What is the significance of <head> and <body> tag in HTML?What is the significance of <head> and <body> tag in HTML?Apr 28, 2025 pm 05:43 PM

The article discusses the roles of <head> and <body> tags in HTML, their impact on user experience, and SEO implications. Proper structuring enhances website functionality and search engine optimization.

What is the difference between <strong>, <b> tags and <em>, <i> tags?What is the difference between <strong>, <b> tags and <em>, <i> tags?Apr 28, 2025 pm 05:42 PM

The article discusses the differences between HTML tags , , , and , focusing on their semantic vs. presentational uses and their impact on SEO and accessibility.

Please explain how to indicate the character set being used by a document in HTML?Please explain how to indicate the character set being used by a document in HTML?Apr 28, 2025 pm 05:41 PM

Article discusses specifying character encoding in HTML, focusing on UTF-8. Main issue: ensuring correct display of text, preventing garbled characters, and enhancing SEO and accessibility.

What are the various formatting tags in HTML?What are the various formatting tags in HTML?Apr 28, 2025 pm 05:39 PM

The article discusses various HTML formatting tags used for structuring and styling web content, emphasizing their effects on text appearance and the importance of semantic tags for accessibility and SEO.

What is the difference between the 'id' attribute and the 'class' attribute of HTML elements?What is the difference between the 'id' attribute and the 'class' attribute of HTML elements?Apr 28, 2025 pm 05:39 PM

The article discusses the differences between HTML's 'id' and 'class' attributes, focusing on their uniqueness, purpose, CSS syntax, and specificity. It explains how their use impacts webpage styling and functionality, and provides best practices for

What is the 'class' attribute in HTML?What is the 'class' attribute in HTML?Apr 28, 2025 pm 05:37 PM

The article explains the HTML 'class' attribute's role in grouping elements for styling and JavaScript manipulation, contrasting it with the unique 'id' attribute.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function