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 does a form mean in html

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article is about what a form means in html. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

In html, a form is an area that contains form elements, which are mainly used to collect different types of user input and need to be defined using the form tag form, while form elements are controls that allow users to enter content in the form, such as input tags (input), text fields (textarea), and so on.

The operating environment of this tutorial: windows7 system, HTML5 version, Dell G3 computer.

A form is an area that contains form elements.

Form elements allow users to enter content in the form, such as text fields (textarea), drop-down lists, radio-buttons boxes, checkboxes, and so on.

Forms are created with tags in which the objects in which the form is placed, such as form fields, buttons, and other things:

.... Form element.

Common form elements

1. Input input label

In most cases, the form tag used is the input tag ().

Elements can be changed into a variety of forms depending on their type attributes.

Value description button defines clickable buttons (usually used with JavaScript to start a script). Checkbox definition check box. Color defines the color picker. Date defines date controls (including year, month, day, not time). Datetime defines date and time controls (including year, month, day, hour, minute, second, fraction of a second, based on the UTC time zone). Datetime-local defines date and time controls (including year, month, day, hour, minute, second, fraction of a second, without time zone). Email defines the fields used for e-mail addresses. File defines file selection fields and "browse." Button for file upload. Hidden defines hidden input fields. Image defines the image as the submit button. Month defines month and year controls (without a time zone). Number defines the fields used to enter numbers. Password defines the password field (the characters in the field are obscured). Radio defines radio buttons. Range defines controls (such as slider controls) that are used to enter numbers whose exact values are not important. Reset defines the reset button (resets all form values to default values). Search defines the text field used to enter the search string. Submit defines the submit button. Tel defines the fields used to enter phone numbers. Text defaults. Define a single-line text field (the default width is 20 characters). Time defines the control (without time zone) that is used to enter time. Url defines the fields used to enter URL. Week defines week and year controls (without a time zone).

2. Textarea text field

Element defines a multiline input field (text field):

The cat was playing in the garden.

3. Button button

Element defines clickable buttons:

4. Select drop-down list, options to be selected by option

The element defines the drop-down list, and the element defines the options to be selected.

VolvoSaabFiatAudi

The drop-down list usually displays the first option as the selected option. However, you can define predefined options by adding the selected attribute.

Thank you for reading! This is the end of the article on "what does the form in html mean?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

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