HTML Series Tutorial--input label

Source: Internet
Author: User

<input> Tags: a text box for submitting user input data.
Input property:
1.checked: For elements such as Checkbox,radio, determine if selected, True/false
2.disabled: Disable INPUT element, cannot commit or enter
3.max/min: Specifies the maximum/small value of the input field
4.maxlength: Specifies the maximum length of characters in the input field
5.multiple: If you use this property, more than one value is allowed
6.name: Defines the name of the INPUT element
7.placeholder: Provides tips to help users fill in input fields
8.readonly: Specifies that the input field is read-only
9.required: Indicates that the value of the input field is required
10.size: Defines the width of the input field
11.step: The legal number interval for the specified input word
12.type: Specifies the type of INPUT element
button
CheckBox
File
Hidden
Image
Password
Radio
Reset
Submit
Text
13.value: Specifies the value of the INPUT element
14.width: Defines the width of the input field. (For type= "image")
15.SRC: Defines the URL of an image to be displayed as a submit button

<label> Tags: defining annotations for input elements
Demo
<label for= "Male" >Male</label>
<input type= "Radio" name= "Sex" id= "male"/>
Note: Label uses the For property to bind the ID element of input

HTML Series Tutorial--input label

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.