Page 1 of 1

loads of errors, need help understanding it

Posted: Sat Jul 30, 2005 8:18 pm
by gaogier
well this is not php, but i dont understand what i got to do, please help

http://validator.w3.org/check?uri=http% ... tically%29

Posted: Sat Jul 30, 2005 8:24 pm
by Burrito
this should be posted in the client side forum:

the error messages it give you should be a pretty good inidcation of what your problems are.

Looks like you're missing a lot of end tags and are using depricated attributes. Try using CSS instead and cleaning up your code to make sure you have things where they need to be...

It's kinda hard to tell though really without seeing your raw code...

Posted: Sat Jul 30, 2005 11:58 pm
by John Cartwright
Moved to Client-Side.

Posted: Sun Jul 31, 2005 10:51 am
by Ambush Commander
Okay, here are a few quick fixes that'll solve a lot of the problems.

& -> & (error is like "reference to entity "u" for which no system identifier could be generated")
All IMG tags get ALT identifiers (accessibility issues, mostly)

Then we can do some work on solving the nesting and deprecated attribute issues.

Posted: Mon Aug 01, 2005 9:24 am
by gaogier
we use css

what do you mean?

Posted: Mon Aug 01, 2005 12:14 pm
by wwwapu
gaogier wrote:we use css
what do you mean?
Things like bgcolor="#000000" or <td background="images/darkblue_tablemidl.jpg" width="16"></td> should be in CSS file. It's easier even to set backgrounds, borders, colors and such in CSS than into HTML.

Posted: Mon Aug 01, 2005 3:00 pm
by gaogier
we have them...trust me, i have deleted something thought and im trying to get it back

Posted: Tue Aug 02, 2005 3:04 pm
by gaogier
the thing i have deleted is back, now how can i fix all theses errors?

Posted: Tue Aug 02, 2005 3:24 pm
by hansteam
1. All tags must be ended. If you have a tag that doesn't have anything between the open tag and the end tag write it as <tag />

2. Most attributes should be handled by CSS. The attributes that must be in your XHTML are: class, id, method (for forms), action (for forms), href (for anchor tags i.e. links), style, type (form elements etc.), name (form elements and anchor tags), alt (for images). There are a few others but anything involved in displaying the page should be done withyour CSS. XHTML is only there for structure.

3. You must have alt attributes in EVERY image tag.

4. No tag names should be capatalized and neither should their attribute names (attribute values may be capatalized if you like).

Posted: Tue Aug 02, 2005 3:37 pm
by gaogier
right,

go here and see if you can make sence out of this

http://validator.w3.org/check?uri=http% ... ly%29&ss=1

btw, we have css as you can see.... http://www.runehints.com/guild2.php and click above the right navi

Posted: Tue Aug 02, 2005 4:43 pm
by Ambush Commander
There's not much to "make sense" of. You'll have to learn how to interpret things by yourself.

Here's something to get you started, it's about &.

http://www.htmlhelp.com/tools/validator ... s.html#amp

Posted: Tue Aug 02, 2005 6:43 pm
by gaogier
thanks

Posted: Tue Aug 02, 2005 8:13 pm
by hansteam
For fifty bucks I'll debug it for you :lol: :wink:

Posted: Tue Aug 02, 2005 8:42 pm
by theda
With CSS to fix many of the errors:

Line 19, column 23:
<body bgcolor="#000000"> <- instead of that use body { background:#000000; }
Line 36, column 70:
...#000000" align="center" border="0" cellpadding="0" cellspacing="0">
<- Remove border="0" cellpadding="0" and cellspacing="0" ... There are CSS techniques to address the margin's. (margin-width I believe).

*All images must have alt="ALTERNATIVE TEXT" in case images aren't loaded.

Line 39, column 14:
You must add a </center> before the ending TR

Fix all the alternative text for EVERY image tag (img), this should eliminate about 50% of your errors.

I'd ignore all the entity and reference errors, as those are PHP-based codes and that can't be avoided, although & could be put in place of all question marks in urls.

*Note that for EVERY tag you open, you MUST close. Any tag that does not have a closing tag must end with />, EX: <BR> is incorrect <BR /> is correct. <meta X> incorrect, <meta X /> correct.

If you would like, provide the HTML script and I could solve the majority of your problems with my little automated replace :)

I had similar problems when coming from HTML 4.0 to XHTML 1.1... <_< Didn't know ALT existed before-hand.

Posted: Tue Aug 02, 2005 8:51 pm
by nielsene
theda wrote: I'd ignore all the entity and reference errors, as those are PHP-based codes and that can't be avoided, although & could be put in place of all question marks in urls.
Thats not correct. Everything PHP generated can be made compliant, and its worth doing so. Once you get the errors down to just these, we can tackle them.