Hi everyone,
I'm trying to find out if its "legal" to add my own custom attributes to xhtml elements, mainly form elements. So can I do this:
<input type="text" id="test" value="" required="yes" />
Note that the required field is not a standrad field. I found this page:
http://www.w3schools.com/xhtml...standardattributes.asp
While it says that those are the valid standard attributes, it doesn't explicitly say that all other attributes are invalid. Then again, when uploading some of the above xhtml code, the W3c validator doesn't like those attributes and says that "there is no attribute 'required'".
http://validator.w3.org/
Can anyone give me a concrete answer on this?
Thanks in advance,
jbubrisk
I'm trying to find out if its "legal" to add my own custom attributes to xhtml elements, mainly form elements. So can I do this:
<input type="text" id="test" value="" required="yes" />
Note that the required field is not a standrad field. I found this page:
http://www.w3schools.com/xhtml...standardattributes.asp
While it says that those are the valid standard attributes, it doesn't explicitly say that all other attributes are invalid. Then again, when uploading some of the above xhtml code, the W3c validator doesn't like those attributes and says that "there is no attribute 'required'".
http://validator.w3.org/
Can anyone give me a concrete answer on this?
Thanks in advance,
jbubrisk