PDA

View Full Version : I am confused by this Valifdator report.



effpeetee
Jul 27th, 2010, 04:55 PM
If you look at line 72 in my index page (http://www.exitfegs.co.uk), My CSE Validator gives me the following report, which I just do not understand. #test{ starts the line.

#test {
width:auto;
font-size: 25px;
color: #000;
text-align: center;
font-weight: 900
}


A universal selector (*) is implied instead of being explicit. To decrease potential confusion and improve readability, consider NOT omitting universal selectors. For example, "div :first-child" versus "div:first-child". Here, "div *:first-child" is more readable and less confusing. This message is displayed up to three times.:eek:

Any help welcomed.

The page works OK as for as I can see.:thumbsup:

Frank
---

optimus203
Jul 27th, 2010, 09:51 PM
Could it be because your missing semi-colons ; at the end of each css declaration? I tried running site through this w3.org validator (http://validator.w3.org), but did not see error your mentioning.

effpeetee
Jul 28th, 2010, 09:41 AM
Could it be because your missing semi-colons ; at the end of each css declaration? I tried running site through this w3.org validator (http://validator.w3.org), but did not see error your mentioning.
No optimus203. It doesn't make any difference. I know that it is OK with W3, but apart from that, I do not understand what my Validator is trying to tell me.

Any light on that would be welcome.

Frank

_Aerospace_Eng_
Jul 28th, 2010, 10:51 AM
What does it matter? Its not w3 complaining about it. If you remove this

<style type="text/css">

#test {
width:auto;
font-size: 25px;
color: #000;
text-align: center;
font-weight: 900
}

#mypic {text-align:center;
width: 540px;
height: 400px
}

#nav{color:#000;
font-weight:900;
background-color:#fff;}
</style>
Does it change it? As for the semi-colons after the last css property, that is optional only if its the last one in the declaration.

effpeetee
Jul 28th, 2010, 11:38 AM
Thanks Aero.

I have moved the css to the style sheet where it really belongs and no problem now.
My real quest was to understand the error message which makes no sense to me at all.

I have just upgraded my CSE Validator program.

Frank

HTMLValidator.c
Jul 29th, 2010, 04:45 AM
If you look at line 72 in my index page (http://www.exitfegs.co.uk), My CSE Validator gives me the following report, which I just do not understand. #test{ starts the line.

#test {
width:auto;
font-size: 25px;
color: #000;
text-align: center;
font-weight: 900
}

:eek:

Any help welcomed.

The page works OK as for as I can see.:thumbsup:

Frank
---

Hi Frank,

I'm the developer of CSE HTML Validator and noticed your message via Google Alerts.

Instead of "#test", you can use "*#test". The "*" is currently implied by "#test" and CSE HTML Validator is letting you know that. It's only an info/suggestion message and not an error or warning.

You may want to post further questions related to CSE HTML Validator here:
http://www.htmlvalidator.com/CSEForum/

I hope this helps!

bazz
Jul 29th, 2010, 06:41 AM
better to rely on the validator of the W3C, imv.
bazz

effpeetee
Jul 29th, 2010, 09:20 AM
Thank you HTMLValidator.c

I note the link and will use it if I need to.
Your explanation is most helpful.

Frank