Is the value attribute in html subject to the same restrictions as the id attribute? Specifically, can I have a numeric value attribute.
Is the value attribute in html subject to the same restrictions as the id
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Looking at the list of attributes for HTML 4, it appears that there is no restriction, apart from the
LIelement which requires it to be a number.Update – since checkboxes (which are the element you have indicated in a comment) are
INPUTelements, they have no special restriction. They can be any valid CDATA.