w3c Validation..

  Gaz 25 13:32 29 May 04

How come, PCadvisor, bbc and all my sites have:

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

and yet, they dont pass the w3c validation!

click here

  Taran 14:00 29 May 04

It takes more than a DTD to make a site validate.

Code validation takes a lot into account but is not 100% effective. In fact there is a disclaimer on the W3C site to that effect, particluarly with XHTML.

I've just checked out a couple of the problems the validator highlighted for this site and I have to say it raised an eyebrow.

Some of the faults returned are, well, questionnable to say the least.

If your site is W3C valid then all well and good and although I'd always suggest that people aim for full validation you can end up by sacrificing a lot in the process.

The DOCTYPE declaration, on its own, does little to help validation. Combined with relevant code in the body of the document though, it is a powerful set of tools for validation.

You have to have the right DTD header to validate a page but it ownly works if your body code is correct. Try the !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> DTD with XHTML body code and all hell will break loose.

It's a complicated topic with no short and easy answer but a DTD is only one component of many that are required to validate a page and, as I've mentioned many times in the past, valid code does not always equate to cross-browser compatible code which in itself is bit odd.

You have to have all of the pieces of the puzzle to validate a page and the DTD is just one of them.

  Forum Editor 08:46 30 May 04

about this. Subject almost any web site to the W3C validation check and you'll come up with plenty of 'errors'. Try Microsoft.com for starters.

Whilst in an ideal world there would be one, universally accepted set of protocols for coding websites we need to understand that it just isn't going to happen. The reasons for this are so many and some of them so complex that a discussion about them is beyond the scope of this forum. By all means aim for the ideal, but understand that you'll inevitably have to compromise.

This thread is now locked and can not be replied to.

Nintendo Switch (Nintendo NX) release date, price, specs and preview trailer: Codename NX console…

1995-2015: How technology has changed the world in 20 years

8 things designers (and brands) need to know about the modern woman

How to speed up a slow Mac: 19 great tips to make an iMac, MacBook or Mac mini run faster | Speed…