CSS Validation Problem

Soldato
Joined
27 Dec 2005
Posts
17,316
Location
Bristol
Hi guys. Just started to learn CSS properly. For the time I've spent (literally a couple of hours) I personally think I've done pretty well so go easy on any errors you find aside my problem! :p

Basically when I try and validate the website I get a load of errors about end tags being omitted (even though they're all present). If I remove the DOCTYPE header then this fixes all those problems and I'm just left with a few - so my stab in the dark guess is that there's a problem with that, although I've used a standard one.

The website is http://www.idoweddingfilms.co.uk so you can validate it yourself and see what I mean.

Thanks in advance :)
 
I ran your site using the w3 validator and it had quite a few problems where u've used html that is allowed and should be achieved using CSS.

Its just a case of approaching each problem one at a time, is there a specific problem that your struggling to fix? or just all of them?

http://validator.w3.org/

Gaunt
 
Start by changing the Flash embed code to this:

Code:
<object type="application/x-shockwave-flash" data="FLASHFILE.swf" width="200" height="200">
<param name="movie" value="FLASHFILE.swf" />
<img src="IMAGEIFFLASHDOESNTLOAD.jpg" width="200" height="200" alt="Flash Video" />
</object>

See if that makes much difference.
 
Unfortunately using embed doesn't work as the validator still throws a hissy fit at the required flashvars attribute.

Being more of a designer and less of a programmer it does seem like W3C is incredibly anal. Like when it's wrong to have <a><h1> but ok to have <h1><a>. Makes no difference to how it looks or works, just seems like a rule for rules sake. Plus when my site throws up 100's of errors, yet works and looks the same in every version of IE back to 5.01, Firefox, Safari and Opera Mini on my mobile phone, just seems all pointless. Safe to say I've given up on validating and as long as it looks and works identical in every browser to every user I'm happy.
 
Back
Top Bottom