Possible Duplicate:
What are valid values for the id attribute in HTML?
Underscores seem fine. What about dashes? Other special characters?
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.
Actually there is a difference between HTML and XHTML.
As XHTML is XML the rules for XML IDs apply:
Source: Extensible Markup Language (XML) 1.0 (Fifth Edition) 2.3
For HTML the following applies:
Source: HTML 4 Specification, Chapter 6, ID Token