Enter HTML5 entry to proficient:<input> label

Source: Internet
Author: User
Keywords tags HTML5 Getting started to master

"Reprint please retain the integrity of the content of the Wind network article, if you do not comply with this principle, we will retain the right to pursue legal responsibility"

<input> Label

Definitions and usage

<input> label defines the input field in which users can enter data.

Differences between HTML 4.01 and HTML 5

In HTML 5, the element has many new properties, and no longer supports some properties in HTML 4.01.

In HTML 5, the type attribute has many new values.

Example

Note: The input element is empty and contains only attributes.

Wind Network (www.ithov.com) Tip: Use the LABEL element to define the callout for the form control.

Property

The property value describes the 4 5 accept list_of_mime_types A comma-delimited list of MIME types indicating the MIME type of the file transfer. Note: Can only be used with type= "file". 4 5 Align Left right top texttop Middle Absmiddle baseline NRC the text alignment after the image is defined. Not supported, please use CSS instead. 4 &amp;http://www.aliyun.com/zixun/aggregation/37954.html "&gt;nbsp; Alt-text defines alternate text for an image. Note: Can only be used with type= "image". 4 5 autocomplete &nbsp; &nbsp; &nbsp; 5 Autofocus true false when the page loads, the input field gets the focus. Note: cannot be used when type= "hidden". &nbsp; 5 checked true to indicate that this input element should be selected the first time it is loaded. Note: Please use with type= "checkbox" and Type= "Radio". 4 5 Disabled true False when the INPUT element is first loaded, the element is disabled so that the user cannot write text in it, or select it. Note: cannot be used with type= "hidden". 4 5 Form True false defines that the input field belongs to one or more forms. 5 Inputmode Inputmode defines the expected input type. The 5 list ID of a DataList references the DataList element. If defined, a Drop-down list can be used to insert a value into the input field. &nbsp; 5 max number input character The large value. &nbsp; 5 maxlength number defines large numbers of words Fu Yi allowed in a text field. 4 5 min Number input character The small value. &nbsp; 5 name Field_name defines a unique name for the INPUT element. 4 5 pattern &nbsp; &nbsp; &nbsp; 5
Related Article

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.