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"/>
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"/>
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.
It is valid according to this part of the HTML5 spec.
The name content attribute gives the name of the form control, as used in form submission and in the form element's elements object. If the attribute is specified, its value must not be the empty string.
Any non-empty value for name is allowed, but the names "charset" and "isindex" are special:
emphasis mine
"Attribute values can contain text and character references, with additional restrictions depending on whether they are unquoted attribute values, single-quoted attribute values, or double-quoted attribute values. Also, the HTML elements section of this reference describes further restrictions on the allowed values of particular attributes, and attributes must have values that conform to those restrictions."
from w3.org (W3C Working Draft):