loads of errors, need help understanding it

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

loads of errors, need help understanding it

Post 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
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post 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...
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Moved to Client-Side.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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.
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

we use css

what do you mean?
User avatar
wwwapu
Forum Contributor
Posts: 197
Joined: Wed Apr 07, 2004 11:57 am
Location: Turku, Finland

Post 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.
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

we have them...trust me, i have deleted something thought and im trying to get it back
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

the thing i have deleted is back, now how can i fix all theses errors?
hansteam
Forum Newbie
Posts: 11
Joined: Tue Aug 02, 2005 2:52 pm
Location: Minnesota

Post 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).
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post 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
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

thanks
hansteam
Forum Newbie
Posts: 11
Joined: Tue Aug 02, 2005 2:52 pm
Location: Minnesota

Post by hansteam »

For fifty bucks I'll debug it for you :lol: :wink:
theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post 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.
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post 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.
Post Reply