Having Problem with validator.w3.org Tidy Clean Up

DHDdirect

New Member
Automatic clean up.. I didn't even know it had one. :)

I wouldn't use the auto clean if that's the case. Many times I've noticed that the validator will come up with a few errors even though there was one issue. Depending on what the issue is of course. So in that reference I'd say that it wouldn't be very good fixing things itself.

You will just need to view the errors and pick up what stands out. It is a good way to learn what not to do as well.

There are a lot of errors there so just take it one at a time and examine your code. Read through the descritions of what the errors mean and if it looks corrent then it may just be.

Take for example the first error


Code:
[I]Line [/I][URL="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.strongfamilies.us%2Fparticipantreg.php&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&user-agent=W3C_Validator%2F1.2#line-14"][COLOR=#0066cc][I]14[/I][/COLOR][/URL][I], Column 113[/I]: NET-enabling start-tag requires SHORTTAG YES
 
…css" rel="stylesheet" type="text/css" [B]/[/B]><link href="/includes/layout.css" rel=…
 
 
The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.
This is just saying that the short tag is corrent but it doesn't match your doctype setting so some browsers may be confused. You can clean up tons of these errors if you just change your doctype from html to xhtml such as:

HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">

Good luck
 
Top