Attributes related to input tags in html

Source: Internet
Author: User

1. The type attribute of the input tag

Property Value Describe
Type button Define clickable buttons (in most cases, use JavaScript to launch scripts).
File Define input fields and "Browse" buttons for file uploads.
CheckBox Define the check box.
Hidden Defines the hidden input field.
Image Defines the submit button in the form of an image.
Password Defines the password field. The characters in the field are masked.
Radio Defines a radio button.
Reset Defines the reset button. The reset button clears all the data from the form.
Submit Define the Submit button. The Submit button sends the form data to the server.
Text Defines an input field for a single line in which the user can enter text. The default width is 20 characters.

The Name property of the 2.input tag

Property Value Describe
Name Field_name Define the name of the INPUT element

Value of the 3.input tag

Property Value Describe
Value Value Specify the value of the INPUT element

Width and height of 4.input tags

Property Value Describe
Width
pixels% Defines the width of the input field. (For type= "image")
Height pixels% Defines the height of the input field. (For type= "image")

5.disabled and checked

property
Value description
disabled
disabled
checked checked

Attributes related to input tags in HTML

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.