Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Numeric ID

 
   Web Hosting Problem Solving Community! (Home) -> Webmaster RSS
Related Topics:
Looking for Hosting - Hi, I'm looking for a hosting service. It has to have: - as much bandwidth as possible (in case the site turns popular) - between 50 and 100 mb of storage space - 30 mb is great too. - multiple domain names called domain add-ons, so I can host..

problems at myshosting.com - What do you do with problems at Waiting for the fix or moving somewhere else? Mark

Background colour evangelism - Submitted for your approval: <body Not so hard, right? However, many designers neglect it because they assume everyone is using white as their default colour. Or they test their pages on a desktop with a..

browser compatibility problem - Hallo everyone. The website I am finishing off is . I have created some css buttons for with dhtml effects. Now, the and the css seem to work fine in all browsers checked so far (IE 5.5. onwards, NS 4.7..

Webmasters ressources - Hello, I present to you a of resources for The major part of the sites suggested are The English sites are accepted. Thanks for making known me your best sites in this field. ..
Author Message
Tony

External


Since: Nov 15, 2007
Posts: 99



(Msg. 1) Posted: Mon Feb 25, 2008 2:17 pm
Post subject: Numeric ID
Archived from groups: alt>www>webmaster (more info?)

The w3C validator says that a numeric ID, such as:
<div id="1">
(or an ID beginning with a number) is invalid: "It is possible that you
violated the naming convention for this attribute. For example, id and
name attributes must begin with a letter, not a digit."


But I can't seem to find anything that says you can't use a numeric ID -
I'll grant that I'm not a master at reading the specs, but all I CAN
find is that an ID should be unique, and should not use character
encoding. Maybe I'm just not seeing it:
http://www.w3.org/TR/REC-html40/struct/links.html#h-12.2.1
http://www.w3.org/TR/REC-html40/struct/links.html#h-12.2.3
http://www.w3.org/TR/REC-html40/struct/global.html#h-7.5.2

So - what about numeric ID's like above? Is it valid? And assuming it's
not, what sort of problems, aside from validation errors, would it cause?

 >> Stay informed about: Numeric ID 
Back to top
Login to vote
gsexton1

External


Since: Aug 02, 2004
Posts: 17



(Msg. 2) Posted: Mon Feb 25, 2008 3:22 pm
Post subject: Re: Numeric ID [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Tony wrote:
> The w3C validator says that a numeric ID, such as:
> <div id="1">
> (or an ID beginning with a number) is invalid: "It is possible that you
> violated the naming convention for this attribute. For example, id and
> name attributes must begin with a letter, not a digit."
>
>
> But I can't seem to find anything that says you can't use a numeric ID -
> I'll grant that I'm not a master at reading the specs, but all I CAN
> find is that an ID should be unique, and should not use character
> encoding. Maybe I'm just not seeing it:
> http://www.w3.org/TR/REC-html40/struct/links.html#h-12.2.1
> http://www.w3.org/TR/REC-html40/struct/links.html#h-12.2.3
> http://www.w3.org/TR/REC-html40/struct/global.html#h-7.5.2
>
> So - what about numeric ID's like above? Is it valid? And assuming it's
> not, what sort of problems, aside from validation errors, would it cause?

They're not valid. Refer to:


http://www.w3.org/TR/REC-html40/types.html#type-name

 >> Stay informed about: Numeric ID 
Back to top
Login to vote
user295

External


Since: Nov 07, 2003
Posts: 366



(Msg. 3) Posted: Mon Feb 25, 2008 9:05 pm
Post subject: Re: Numeric ID [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Tony wrote:

> The w3C validator says that a numeric ID, such as: <div id="1"> (or an
> ID beginning with a number) is invalid: "It is possible that you
> violated the naming convention for this attribute. For example, id
> and name attributes must begin with a letter, not a digit."
>
> But I can't seem to find anything that says you can't use a numeric
> ID - I'll grant that I'm not a master at reading the specs, but all I
> CAN find is that an ID should be unique, and should not use character
> encoding. Maybe I'm just not seeing it:
> http://www.w3.org/TR/REC-html40/struct/links.html#h-12.2.1
> http://www.w3.org/TR/REC-html40/struct/links.html#h-12.2.3
> http://www.w3.org/TR/REC-html40/struct/global.html#h-7.5.2

http://www.w3.org/TR/1999/REC-html401-19991224/types.html#type-name

"ID and NAME tokens must begin with a letter ([A-Za-z]) and may be
followed by any number of letters, digits ([0-9]), hyphens ("-"),
underscores ("_"), colons (":"), and periods (".")."

You're reading the old HTML 4.0 specs, but it is there as well.

http://www.w3.org/TR/REC-html40/types.html#type-name

> So - what about numeric ID's like above? Is it valid?

No.

> And assuming it's not, what sort of problems, aside from validation
> errors, would it cause?

Can't answer that; I've never used a number because it's against the
spec. <g>

--
-bts
-Friends don't let friends drive Vista
 >> Stay informed about: Numeric ID 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]