473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Markup validation

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
3 1692
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

"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Henry S. Thompson | last post by:
I'm pleased to announce that a showcase of Markup Technology's high-performance MT Pipeline product is now available at http://www.markup.co.uk:8888/ The showcase provides online access to a...
38
by: Jukka K. Korpela | last post by:
As well all know, valid markup is important... but when trying to find a convincing modern argument in favor of this, I found pages like http://www.htmlhelp.com/tools/validator/reasons.html which...
16
by: J. C. Denton | last post by:
I just manually validated alexa's global top 100 sites and find only 2 sites that pass validation. They are http://www.microsoft.com/ http://www.wikipedia.org/ All others should go w3c...
4
by: Dotcom | last post by:
ASP.NET generates markup that fails WC3 validation in a number of situations (below): can anyone suggest a way round these? 1. For Command Buttons, the HTML <INPUT type = Image> element rendered...
6
by: yaru22 | last post by:
I'd like to create a program that validates bunch of urls against the w3c markup validator (http://validator.w3.org/) and store the result in a file. Since I don't know network programming, I...
10
by: Ken1 | last post by:
Is there a way to know if the user has javascript on? Also, is it a good idea to validate all input in js and php or will this slow down the website?
1
by: bharati webpro | last post by:
I've tried the W3C MarkUp Validation Service for the following web page: www.chempro.in/index.htm The validation shows 143 errors. Can anyone help me to rectify thes errors please. Thanks.
16
by: Tantale | last post by:
I used this serviec to check my webpage http://www.jmrw.com/Abroad/Barcelone/index.htm Made with Dreamweaver 8. The result is 206 errors, most of them "end tag omitted, but OMITTAG NO was...
9
by: Daniele Perilli | last post by:
Hi everybody, I'd like to introduce you a new little tool I developed to automatically check markup validation of all pages in given websites. It uses W3C HTML Validator and CSS Validator online...
0
drhowarddrfine
by: drhowarddrfine | last post by:
Many people think of validation as a mark of valor so they can put on their web page the little W3C logo proclaiming they have achieved some poetic, high moral platform. In truth, validation is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.