View Full Version : Validate Template
matthewhotdude
08-06-2009, 04:24 PM
I was over at VBSEO and they reccomended I Validate my template so I went onto http://validator.w3.org/check?uri=http%3A%2F%2Fwww.chattaboxforums.com&charset=%28detect+automatically%29&doctype=Inline&group=0&verbose=1&user-agent=W3C_Validator%2F1.654
And I have 49 errors, I havent got a clue how to fix them so could someone please help me
Lynne
08-06-2009, 04:40 PM
It's pretty self explanatory if you read the comments. For instance, the first one:
Line 606, Column 96: ID "navbar_username" already defined … 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" 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).
It says the id is supposed to be unique, yet you've already used it before in this page. So, you need to choose a unique identifier to use there. The second error simply tells you where it was used before (line 510). The next one is again about not using a unique identifier.
Then you get onto some html... you didn't properly close a <td> or <tr> tag. Etc. Just read the comments. Many times if you fix one item, it eliminates a few of the errors.
matthewhotdude
08-06-2009, 06:40 PM
Line 606, Column 96: ID "navbar_username" already defined … 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" 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).
So what am I actually supposed to change on there? id=navbar_username
Lynne
08-06-2009, 08:17 PM
Yes, you need to change the id since it must be unique on that page. You may only have one item with an id of navbar_username on the page. You could call it navbar_username2 if you want. But, make sure if you have css associated with the id, then you'll have to add a new class also.
matthewhotdude
08-06-2009, 09:05 PM
I would never be able to do that :( I have no clue that side of things!
Think I would even pay someone to sort it out
1Unreal
08-07-2009, 02:03 AM
vBulletin doesn't validate anyway. Its very outdated software.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.