Home >Web Front-end >CSS Tutorial >What is the input tag? What are the attributes of the input tag?

What is the input tag? What are the attributes of the input tag?

云罗郡主
云罗郡主Original
2018-11-09 14:35:1926143browse

What tag does the input tag belong to? What are the attributes of the input tag? I believe that those who are new to forms should be very unfamiliar with it, so let’s talk about what are the attributes of the input tag?

1: What is the input tag?

The input tag is used to collect user information. According to different attribute values, the input field also has many forms. Therefore, there are many values ​​for the input tag. The value of the input tag is determined based on the input field in the form. We can control the input field through type. The input tag currently supports browsers such as IE, Firefox, Google, and Safari. It is also widely used. [Recommended reading: How to get the value of the input tag in HTML? Detailed explanation on the usage of input value

Input tag syntax:

<input type="表单类型"/>

The input tag is a single-element tag with no end tag.

2: What are the input tag attributes?

What is the input tag? What are the attributes of the input tag?

##1.type attribute:

Text attribute: We use the txxt attribute value to set the single-line text box.

Password text box: We use the passwprd attribute value to set the input of the password box.

button is to set the button, and reset is to set the reset button.

2.form attribute:

form specifies that input is one or multiple forms.

3.formtarget attribute:

The formtarget attribute refers to where the user defines where to display keywords after sending the form. Currently it only applies to type="submit" and type="image".

There are actually many more attributes of the input tag, which can be queried through the manual. The above is about what is the input tag? A full introduction to the attributes of the input tag. If you want to know more about

CSS3 tutorial, please pay attention to the php Chinese website.


The above is the detailed content of What is the input tag? What are the attributes of the input tag?. 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