Label

input

Attribute value description
accept audio/ video/ image/*MIME_type Specifies the type of file to be submitted via file upload. (only for type="file")
alt text Defines the alt text for image input. (type="image" only)
autocomplete onoff The autocomplete attribute specifies whether the <input> element input field should have autocomplete enabled.
autofocusNew The autofocus attribute specifies that the <input> element should automatically gain focus when the page loads.
checked checked The checked attribute specifies the <input> elements that should be pre-selected when the page loads. (only for type="checkbox" or type="radio")
disabled disabled The disabled attribute specifies which <input> elements should be disabled.
form form_id The form attribute specifies the form or forms to which the <input> element belongs.
The formaction URL property specifies the URL of the file that handles the input control when the form is submitted. (only for type="submit" and type="image")
The formenctype application/x-www-form-urlencodedmultipart/form-datatext/plain attribute specifies how the form data is encoded when it is submitted to the server (only for type="submit" and type="
formmethod getpost Defines the HTTP method for sending form data to the action URL. (only for type="submit" and type="image")
formnovalidate formnovalidate The formnovalidate attribute overrides the novalidate attribute of the <form> element.
formtarget _blank_self_parent_topframename Specifies the name or keyword indicating where to display the received response after the form is submitted. (only for type="submit" and type="image")
height pixels Specifies the height of the <input> element. (only for type="image") The
list datalist_id attribute references the <datalist> element, which contains the predefined options for the <input> element.
The max numberdate attribute specifies the maximum value of the <input> element.
The maxlength number attribute specifies the maximum number of characters allowed in an <input> element.
The min numberdate attribute specifies the minimum value of the <input> element.
The multiple multiple attribute specifies multiple values ​​that the user is allowed to enter into the <input> element.
name text The name attribute specifies the name of the <input> element.
pattern regexp The pattern attribute is specified for validating <input> Regular expression for the value of the element.
placeholderNew text The placeholder attribute specifies a brief hint message describing the expected value of the input <input> field.
readonly readonly The readonly attribute specifies that the input field is read-only.
required The required attribute specifies that the input fields must be filled out before submitting the form.
size number The size attribute specifies the visible width of the <input> element in characters.
src URL The src attribute specifies the URL of the image displayed as the submit button. (only for type="image")
step number The step attribute specifies the legal number interval for <input> elements.
type button\checkbox\color\date\datetime\datetime-local\email\file\hidden\image\month\number\password\radio\range\reset\search\submit\tel\text\time\url\week type property Specifies the type of <input> element to display.
value text Specifies the value of the <input> element value.
width pixels The width attribute specifies the width of the <input> element. (only for type="image")

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324652560&siteId=291194637