The validator will help resolve and prevent those unexpected results in your work, such as an element being the wrong colour because it's inheriting values from somewhere you hadn't anticipated. In that case, explicitly setting the colour will make sure it's set to the value you're expecting and it and any child elements won't inherit from somewhere further up the tree (unless you want it to of course, in which case set it to explicitly inherit).

On 3 Mar 2006, at 09:44, Gunlaug Sørtun wrote:

Soeren Mordhorst wrote:
I feel good when a validation-program could not find any failures, cause it gives me a secure feeling that at least the basics of standards are complied.

Yes, it is nice to know there's no failures.

But how important is the validation with tools like hera or the w3c-validators realy?

Apart from the obvious usefulness of providing you with a "second pair
of eyes" during, or at the end of, a design process, validation is as
important as you want it to be :-)

Validation means everything to some, and close to nothing to others.
Better be in, or close to, the former group than in the latter.

It wouldn't make much sense to work with standards if the validity of
ones markup, CSS and so on didn't matter, so I'd say validity *is*
important.
However, if I add something that isn't in those same standards, then
it's not important to me to make such non-standard bits and pieces pass
validation.
So, to me _all_ validators are useful tools and indeed important, but
they don't rule over my code. _I_ do.

After a CSS-validation made by w3c there appears the result:"You have
no background-color with your color : h1". In this case my question would be: Why should I define a background-color, if the background-color that should be used is already defined in the body-element?

You must differentiate between 'errors' and 'warnings'.

Most 'errors' are genuine 'errors', and should be fixed... unless you
have added something that you know is non-standard, and want to keep it
like that anyway. That's your choice to make.
Validators may also make a "mistake" since they are not flawless, but
that doesn't happen too often.

Most 'warnings' are more like questions... "are you sure this will turn
out right under all circumstances, if you leave it like this?"
Such 'warnings' are often quite useful, since it is easy to overlook
something important. A bit more testing "under all circumstances" may
help determining if you should indeed change or add something - like a
background-color, or leave it as is.

regards
        Georg
--
http://www.gunlaug.no
******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************


******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to