Modify the code below, then click "Update". See below for attributes.
There are 3 kinds of attributes that you can add to your HTML tags: Element-specific, global, and event handler content attributes.
The attributes that you can add to this tag are listed below.
The following table shows the attributes that are specific to this tag/element.
| Attribute | Description |
| accept | Specifies a comma-separated list of content types that the server accepts.
Possible values:
audio/*
video/*
image/*
- [A valid MIME type, with no parameters]
|
| action | Specifies the URL of the file that will process the control when submitted. |
| alt | Alternate text. This specifies text to be used in case the browser/user agent can't render the input control. |
| autocomplete | Prevents the browser from using "autocomplete" with this control. Can be useful for sensitive data, such as banking details etc.
Possible values:
|
| autofocus | Automatically gives focus to this control when the page loads. This allows the user to start using the control without having to select it first. There must not be more than one element in the document with the autofocus attribute specified.
This is a boolean attribute. If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace (i.e. either autofocus or autofocus="autofocus").
Possible values:
|
| checked | The input control will already be selected when the page loads. Used with type="radio" or type="checkbox". |
| disabled | Disables the input control. The control won't accept changes from the user. It also cannot receive focus and will be skipped when tabbing.
This is a boolean attribute. If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace (i.e. either disabled or disabled="disabled").
Possible values:
|
| enctype | Specifies the content type used to encode the form data set when it's submitted to the server.
Possible values:
application/x-www-form-urlencoded (default)
multipart/form-data (use this when uploading files)
text/plain (use this when uploading files)
|
| form | Specifies the ID of a form to which this control belongs.
Possible values:
[The ID of a form element in the element's owner Document]
|
| height | Specifies the height of the control. |
| list | Specifies a datalist element to use for a list of predefined options for the user. The value must be the ID of a datalist element in the same document. |
| max | Specifies the maximum value for the control. |
| maxlength | Specifies the maximum number of characters that the user is allowed to enter into the text field. |
| method | Specifies the HTTP method to use when the control is submitted.
Possible values:
get (the form data is appended to the URL when submitted)
post (the form data is not appended to the URL)
put
delete
|
| min | Specifies the minimum value for the control. |
| multiple | Specifies whether the user is allowed to enter more than one value.
This is a boolean attribute. If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace (i.e. either multiple or multiple="multiple").
Possible values:
|
| name | Assigns a name to the input control. |
| novalidate | Specifies that the form is not to be validated during submission.
This is a boolean attribute. If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace (i.e. either novalidate or novalidate="novalidate").
Possible values:
- [Empty string]
- novalidate
|
| pattern | Specifies a regular expression against which the control's value is to be checked. Value must match the Pattern production of ECMA 262's grammar. |
| placeholder | Specifies a short hint (a word or short phrase) intended to aid the user with data entry. A hint could be a sample value or a brief description of the expected format.
Note: For a longer hint or other advisory text, the title attribute is more appropriate.
|
| readonly | Sets the input control to read-only - it won't allow the user to change the value. The control however, can receive focus and are included when tabbing through the form controls.
This is a boolean attribute. If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace (i.e. either readonly or readonly="readonly").
Possible values:
|
| required | Specifies that the input field is a required field (the user must complete this field).
This is a boolean attribute. If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace (i.e. either required or required="required").
Possible values:
|
| size | Specifies the width of the control, in characters. Value that is a valid non-negative integer greater than zero. |
| src | If type="image", this attribute specifies the location of the image. |
| step | Specifies the granularity that is expected (and required) of the value, by limiting the allowed values. |
| target | Specifies the browsing context to load the destination indicated in the action attribute.
Possible values:
_blank
_self
_top
_parent
|
| type | Specifies the type of control.
Possible values:
- hidden
- text
- search
- url
- email
- password
- datetime
- date
- month
- week
- time
- datetime-local
- number
- range
- color
- checkbox
- radio
- file
- submit
- image
- reset
- button
|
| value | Specifies the intial value for the control. Note: If type="checkbox" or type="radio" this attribute is required. |
| width | Specifies the width of the control. |
The following attributes are standard across all HTML 5 tags.
Event handler content attributes enable you to invoke a script from within your HTML. The script is invoked when a certain "event" occurs. Each event handler content attribute deals with a different event.
Here are the standard HTML 5 event handler content attributes.