Possible Duplicate:
What are valid values for the id attribute in HTML?
valid value for name attribute in html
It is valid to name a HTML5 input with a string containing a period?
<input type="text" name="article.title" value="The title"/>
The ID and NAME elements must start with a letter i.e. upper case A to Z or lower case a to z; a number is not allowed. After the first letter any number of letters (a to z, A to Z), digits (0 to 9), hyphens (-), underscores (_), colons (:) and periods (.) are allowed.
The type attribute specifies the type of <input> element to display. If the type attribute is not specified, the default type is "text".
Explanation: The correct syntax of HTML5 doctype is <! doctype html>, doctype is the very first thing to write in HTML5.
Yes, it's valid.
But you will make things difficult for yourself if you need to access them via JS or CSS in particular. Again, it can be done, but it will make things difficult.
My advice is to use a hyphen instead.
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