These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:11 pm Advanced search

Id attribute validation question

Here you can discuss things related to HTML and the Web in general that do not fit in to other categories.

Id attribute validation question

Postby peroyomas » Fri May 07, 2010 5:57 pm

Does the id attribute allows to begin with a number or a hyphen, unlike previous specs? Is there any set of character that aren't allowed, besides space character?
User avatar
peroyomas
<h6>
 
Posts: 7
Joined: Wed Jul 08, 2009 8:22 pm
Location: Chile

Postby zcorpan » Mon May 10, 2010 2:56 pm

The empty string and spaces aren't allowed. Anything else is allowed.
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests