By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,229 Members | 1,371 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,229 IT Pros & Developers. It's quick & easy.

Markup validation

P: n/a
I just got through validating apage at w3c org. I got 300 errors.
But...the errors say things like color is no longer an attribute! What are
they talking about!
Can anyone shed any light as to why color can not be an attribute?
And body!!! Body is not an attribute! Background color is not allowed! Am I
living on the same planet?
It feels to me like there aren't any attributes left!
Gary
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.647 / Virus Database: 414 - Release Date: 29/03/2004
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Gary Finnigan wrote:
I just got through validating apage at w3c org. I got 300 errors.
But...the errors say things like color is no longer an attribute! What are
they talking about!
Can anyone shed any light as to why color can not be an attribute?
And body!!! Body is not an attribute! Background color is not allowed! Am I
living on the same planet?
It feels to me like there aren't any attributes left!


Depends on the HTML version you're validating against. HTML Strict
generally allows fewer presentational attributes than HTML Transitional.
And of course many of the presentational attributes in use have never
been valid at all.

Ideally most, if not all, presentational attributes should be removed
and the styling done with CSS. If you really can't use CSS instead of
presentational HTML attributes, you're probably better off with HTML
Transitional.

What's the URL of the page you're trying to validate?
Matthias
Jul 20 '05 #2

P: n/a

"Gary Finnigan" <gj********@talk21.com> wrote in message
news:_m*****************@news-binary.blueyonder.co.uk...
I just got through validating apage at w3c org. I got 300 errors.
But...the errors say things like color is no longer an attribute! What are
they talking about!
Can anyone shed any light as to why color can not be an attribute?
And body!!! Body is not an attribute! Background color is not allowed! Am I living on the same planet?
It feels to me like there aren't any attributes left!
Gary


What's the url? What is the doctype of the page in question? Need some
info...

Jim Roberts
Jul 20 '05 #3

P: n/a
DU
Gary Finnigan wrote:
I just got through validating apage at w3c org. I got 300 errors.
But...the errors say things like color is no longer an attribute! What are
they talking about!
Can anyone shed any light as to why color can not be an attribute?
And body!!! Body is not an attribute! Background color is not allowed! Am I
living on the same planet?
It feels to me like there aren't any attributes left!
Gary
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.647 / Virus Database: 414 - Release Date: 29/03/2004


If you go

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
(...)

<font color="red" ...>
<table bgcolor="blue" ...>

then yes, color and bgcolor are deprecated attributes. Body is not an
attribute in any/all webpages; body is never an attribute.

It would have been best if you could have provided an url.

DU
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.