Forum Moderators: not2easy
I'm new to this - and just using very basic css on my pages to control font size and colours etc.
I know that not all browsers support css - that doesn't matter to me - I don't really care if 1 person in a hundred gets to see the default font settings because they have an old browser - but I don't really want these people to possibly view my pages with a grey background.
So my question is this - is it possibly worth keeping the old ....
BODY BGCOLOR="#FFFFFF"
Is this a sensible 'safety net' - to at least make sure my page has a nice white background - even if my chosen font styles have gone?
I'm guessing that keeping a little bit of the old style mark up on my pages may have some negative implications that I'm not aware of - but I'm not sure!
I was mainly concerned that having the old style code on my pages - even just a small snippet - may effect google rankings.
I believe the old style font tags are 'marked down' by Google - or am I wrong?
OK - just to clarify - Does that still apply if the CSS and HTML are both set to the same colour?
Just checking that you are not talking about having CSS set to one colour - and HTML set to a different one.
An example:
CSS:
body {
background-color: #fff;
color: #000;
}
HTML:
<body bgcolor="#ffffff">
...
</body>
Now suppose, that I have my browser set with white text on black background and it doesn't support stylesheets. I'll see white on white than.
If you use CSS to control colors, fonts, etc. you need not do the same in HTML. Leave users which do not support CSS with their own preferencies.