Jump to content

background color validation warning


scotto

Recommended Posts

I have the following code in style sheet:table { background-color: #ffffcc;}When I run W3C validation, I get the following warning:Line : 44 (Level : 1) You have no color with your background-color : tableWhat does this warning mean?ScottO

Link to comment
Share on other sites

It means you should define a color for your text as well to go with your background color, despite it being the same color as the parent element (body?). This is a reminder for you to specify color so that you don't get lousy contrasts if the reader has a default color to fall back on.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...