

either novalidate or novalidate="novalidate"). 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. Specifies that the form is not to be validated during submission.

Specifies the HTTP method to use when the control is submitted. text/plain (use this when uploading files).multipart/form-data (use this when uploading files).application/x-www-form-urlencoded (default).Specifies the content type used to encode the form data set when it's submitted to the server. Specifies the URL of the file that will process the control when submitted. Specifies the ID of a form to which this control belongs. For example, if you specify the attribute as dirname="text_dir", once the form has been submitted, the data might look like this: text_dir=ltr. The value of this attribute can be a string of text such as a name for the field. either disabled or disabled="disabled").ĭetermines the direction of the text as submitted in the input field. It also cannot receive focus and will be skipped when tabbing. The control won't accept changes from the user.

Used with type="radio" or type="checkbox".ĭisables the input control. The input control will already be selected when the page loads. either autofocus or autofocus="autofocus"). There must not be more than one element in the document with the autofocus attribute specified. This allows the user to start using the control without having to select it first. Can be useful for sensitive data, such as banking details etc.Īutomatically gives focus to this control when the page loads. Prevents the browser from using "autocomplete" with this control. This specifies text to be used in case the browser/user agent can't render the input control. (for specifying a file extension)Īlternate text.Specifies a comma-separated list of content types that the server accepts. The element accepts the following attributes. Here are the form-associated elements in HTML.Īttributes can be added to an HTML element to provide more information about how the element should appear or behave. This is because it can have a form-owner. The tag is referred to as a form associated element.
