loads of errors, need help understanding it
Moderator: General Moderators
-
gaogier
- Forum Contributor
- Posts: 391
- Joined: Wed Mar 02, 2005 1:02 pm
- Location: Portsmouth, UK
- Contact:
loads of errors, need help understanding it
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
http://validator.w3.org/check?uri=http% ... tically%29
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...
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...
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
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.
& -> & (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.
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).
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).
-
gaogier
- Forum Contributor
- Posts: 391
- Joined: Wed Mar 02, 2005 1:02 pm
- Location: Portsmouth, UK
- Contact:
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
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
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
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
Here's something to get you started, it's about &.
http://www.htmlhelp.com/tools/validator ... s.html#amp
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.
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.
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.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.