hrh gracie wrote:
BUT, I'm back because of yet another question.......
One question per thread, please. That's why this has been branched into a new one.
I ran the validation on my php file that contains the html. It found 3 errors, all because it didn't like me having an html tag in uppercase.
It now says "NO ERRORS OR WARNINGS FOUND."
Except that tons of the html is still highlighted in yellow. Which DW says means its INVALID. And I haven't figured out how to have it tell me
WHAT'S invalid about it... It flags this whole piece of code for example:
<td colspan="15" align="left"> </td>
Looking at the w3schools set of table tags, the valign is valid on the tr. The colspan and align are valid on the td... So, what's the problem?
And HOW do I get Dreamweaver to TELL ME what it's complaining about - and again, I've ALREADY done the validator and the window says there are NO ERRORS OR WARNINGS.
The validation tools in Dreamweaver work only for HTML. You cannot use Dreamweaver's internal validator on a page that contains PHP code, because it's only the dynamic output of a PHP script that can be validated. If you want to validate server-side pages, you need to put them on a live server, and run them through the W3C validator (http://jigsaw.w3.org/css-validator/).
If you have run a page with PHP script through the Dreamweaver validator, it probably highlights perfectly valid code as invalid because it can't parse the server-side script. Close the page, and reopen it. The yellow highlighting should go away.
By the way, the Dreamweaver validator is not 100% reliable. It's about 99% accurate, but the only reliable validator is the W3C one.
As David says, use the online validation tools at W3C. The link he gave you is for the CSS validiation tool, which is good, too.
IMO every web developer should get the browser Add-On for Firefox called Web Developer Toolbar. Among other things, it has code validation in the toolbar.