Is the following allowed?
<input type="hidden" name="field" />
It is fine in hidden fields. It is only required in checkbox and radio inputs. It can never be specified with a file input. See http://www.w3schools.com/TAGS/att_input_value.asp
XHTML 1.1 schema says that value
is not mandatory:
<xs:attributeGroup name="xhtml.input.attlist">
<xs:attributeGroup ref="xhtml.Common.attrib"/>
<xs:attribute name="type" type="xhtml.InputType.class" default="text"/>
<xs:attribute name="name" type="xh11d:CDATA"/>
<xs:attribute name="value" type="xh11d:CDATA"/>
<xs:attribute name="checked">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="checked"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="size" type="xh11d:Number"/>
<xs:attribute name="maxlength" type="xh11d:Number"/>
<xs:attribute name="src" type="xh11d:URI"/>
<xs:attribute name="tabindex" type="xh11d:Number"/>
<xs:attribute name="accesskey" type="xh11d:Character"/>
</xs:attributeGroup>
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