This is a migrated thread and some comments may be shown as answers.

CSS & Markup Validation Error

0 Answers 26 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Bo Sep
Top achievements
Rank 1
Bo Sep asked on 09 Feb 2011, 08:37 PM
Hi there,
I am using RadTreeView Control  and have come across this issue when validating CSS and Markup in validate.w3.org.
I get : id and name attributes must begin with a letter, not a digit. error
Here are the some of the errors:
# Error Line 820, Column 179: there is no attribute "runat"
 
…lutions/Solutions-By-Need.aspx' runat='server' id='8c1836f8-fc8d-4842-817b-18b…
 
?
 
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
 
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
 
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
# Error Line 820, Column 192: value of attribute "id" invalid: "8" cannot start a name
 
…ions-By-Need.aspx' runat='server' id='8c1836f8-fc8d-4842-817b-18b17d76c9b4'>So…
 
?
 
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.
# Error Line 820, Column 350: value of attribute "id" invalid: "8" cannot start a name
 
…ions-By-Need.aspx' runat='server' id='8c1836f8-fc8d-4842-817b-18b17d76c9b4'>By…
 
?
 
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.
# Error Line 820, Column 350: ID "8c1836f8-fc8d-4842-817b-18b17d76c9b4" already defined
 
…ions-By-Need.aspx' runat='server' id='8c1836f8-fc8d-4842-817b-18b17d76c9b4'>By…
 
?
 
An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).
# Info Line 820, Column 192: ID "8c1836f8-fc8d-4842-817b-18b17d76c9b4" first defined here
 
…ions-By-Need.aspx' runat='server' id='8c1836f8-fc8d-4842-817b-18b17d76c9b4'>So…
 
# Error Line 820, Column 472: value of attribute "id" invalid: "8" cannot start a name
 
…ons-By-State.aspx' runat='server' id='8c1836f8-fc8d-4842-817b-18b17d76c9b4'>By…
 
?
 
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.
# Error Line 820, Column 472: ID "8c1836f8-fc8d-4842-817b-18b17d76c9b4" already defined
 
…ons-By-State.aspx' runat='server' id='8c1836f8-fc8d-4842-817b-18b17d76c9b4'>By…
 
?
 
An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).
# Info Line 820, Column 192: ID "8c1836f8-fc8d-4842-817b-18b17d76c9b4" first defined here
 
…ions-By-Need.aspx' runat='server' id='8c1836f8-fc8d-4842-817b-18b17d76c9b4'>So…
 
# Error Line 820, Column 598: value of attribute "id" invalid: "8" cannot start a name
 
…-By-Industry.aspx' runat='server' id='8c1836f8-fc8d-4842-817b-18b17d76c9b4'>By…
 
?
 
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.
# Error Line 820, Column 598: ID "8c1836f8-fc8d-4842-817b-18b17d76c9b4" already defined
 
…-By-Industry.aspx' runat='server' id='8c1836f8-fc8d-4842-817b-18b17d76c9b4'>By…
 
?
 
An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

Any suggestions please?

Thank you

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Bo Sep
Top achievements
Rank 1
Share this question
or