HTML Input Property

Source: Internet
Author: User

The input tag appears separately, <input/>
Property.
Common--General properties
Type-Represents the display of an input field (input type, select type, click Type)
Value--The values of the input fields
Size--The length of the input field
MaxLength--Input fields can enter a maximum length of text
Checked--If the input field is selected, the representation has been selected
ReadOnly--Input fields can be selected, but cannot be modified
Disabled-the input field cannot be focused, cannot be selected, is grayed out, and does not play any role in the form
accesskey--How to access the form's shortcut keys
TabIndex--the "tab" key traversal order of the input fields
SRC--Represents the position (URI) of a picture when a picture is used to represent a button
Alt-Represents the form's prompt text when the mouse pauses
Type attribute--represents an HTML form, a single-Line input field (box) representation

Type property Value:
Text--Input field (input type)
Password--is also the text input field, but the input text is displayed with the password symbol ' * ' (input type)
FILE--can enter a path (input type)
CheckBox--check box. You can select 0 or more (select type)
Radio--Radio box. You can select only one and you must select one (select type)
Hidden-Represents a hidden field that can transmit some hidden information to the server
Button--buttons (click Type)
Image-Use the image to display the button, using the SRC attribute to specify the location of the image (just like the Src property of the IMG tag) (click Type)
Submit-button, the form can be completed to submit, the message to the server. You can use the Value property to display text on the button (click Type)
Reset-reset button to empty the information in the form (click-to-type)
AccessKey Properties--access to the shortcut keys that represent links

Links that define accesskey can be accessed using shortcut keys (ALT + letters)

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.