Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the commonly used tags in HTML

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "what are the common tags of HTML?". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

In HTML, tag pairs are used to create a form that defines where the form begins and ends, and everything between the tag pairs belongs to the content of the form. Each form element starts with a form element and can contain all the form controls, as well as any necessary accompanying data, such as the label of the control, the location of the script or program that processes the data, and so on.

What does htmlform stand for?

In the tag of the form, you can also set the basic properties of the form, including the name of the form, the handler, the delivery method, and so on. In general, the form handler action and the delivery method method are essential parameters.

Attributes of the html element

1.action attribute: used to define the location of the form handler (relative address or absolute address).

2.name attribute: used to name the form.

3.method attribute: defines how form results are delivered from the browser to the server. There are generally two ways: get and post.

Method=get: when using this setting, the form data will be sent as a parameter of CGI or ASP, that is, the data entered by the visitor will be appended to the URL and sent directly to the server by the client, so the speed

Will be faster than post, but the disadvantage is that the data length cannot be too long. When no method is specified, get is generally regarded as the default.

Method=post: with this setting, the form data is sent separately from URL, and the client computer notifies the server to read the data, so there is usually no limit on the length of the data, but the disadvantage is that it will be slower than get.

4.enctype property: used to set the encoding of the form information submission.

The enctype attribute defines the MIME encoding method for the form. The value of the encoding method is shown in the following table.

The value of the coding method

Enctype value

The meaning of the value

Text/plain

Send in plain text

Application/x-www-form-urlencoded

Default encoding form

Multipart/form-data

MIME encoding, which must be selected in the form for uploading files.

5.target property: used to specify how the target window will be opened.

The opening mode of the target window contains four values

_ blank means to display the returned information in a newly opened window

_ parent means that the returned information is displayed in the parent browser window

_ self indicates that the returned information will be displayed in the current browser window.

_ top indicates that the returned information will be displayed in the top-level browser window.

This is the end of the content of "what are the commonly used HTML tags?" Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report