The HTML5 spec allows form-associated elements to refer to their associated <form>
element via the [form]
attribute. Do any browsers support this natively?
Which of the following is not a type of attribute for input tag? Explanation: Day is not defined in the pre-defined attribute list of input tag.
The input tag is used within < form> element to declare input controls that allow users to input data. An input field can be of various types depending upon the attribute type. The Input tag is an empty element which only contains attributes.
The HTML <input> element is the most used form element. An <input> element can be displayed in many ways, depending on the type attribute. All the different input types are covered in this chapter: HTML Input Types.
See:
The form
attribute is supported since Firefox 4, Opera 9.5, Safari 5.1 and Chrome 10, but not on IE yet.
Here's a test page:
http://www.impressivewebs.com/demo-files/html5-form-attribute/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With