The HTML5 spec says that HTML element names must consist only of alphanumeric ASCII characters. (Attribute names are less restricted.) http://www.w3.org/html/wg/drafts/html/master/syntax.html#syntax-tag-name