7
I understand that validating code can be important and mainly help those who are starting to correct errors and be more informed about obsolete elements in current language versions.
But how much should I care about validating mine HTML
and CSS
, for example, my code HTML
gave a warning that I am using an iframe that has a frameborder attribute and it is obsolete, but this part of the code is actually a Faceboook plugin and anything I change in this part of the code it stops working (I am not in favor of using these social networking plugins but it was client’s requirement).
This was just an example already happened similar things to libraries or frameworks that I tried to use, or even browser hacks that I needed to use to fix CSS
in some browsers, and of course hacks are accused as errors in validation.
I currently use this W3C validation only to correct simple errors that I missed, and I don’t try to fulfill 100% of what they indicate.
So I wanted to know, as far as it’s worth to strive to have your code validated 100% by W3C, I mean time and give up elements that you use but that you didn’t develop. Also, is there any real benefit to having the validation or is it simply a fix that allows you to go around saying that your code is good because the W3C said it is?
NOTE: I am not defending completely crazy codes and bad deeds full of mistakes and etc.
Related: Worth using the W3C validator?
– Marcelo de Andrade