I have wittled down my errors from 12 to 2, but the 2 it shows i can't
really do anything about.
1. Line 126, column 48: there is no attribute "COLOR"
<td height="1" colspan="5"><hr size="1" color="#CCCCCC"></td>
2. Line 286, column 27: there is no attribute "BACKGROUND"
<td width="4" background="right-bittorrent-bg.gif"> </td>
For the first if I delete the color attribute obviously it changes colour
which isn't what i want.
For the second i'm not really sure about.
Dreamweaver MX suggests both the COLOR and BACKGROUND attributes on it's
auto pop-up thing while you're typing, so either DW is wrong or the
validator is wrong. What am I doing wrong to get these errors?
At the top i have:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 12 3273
"StardogChampion" <st*************@blueyonder.co.uk> wrote in message
news:W0*********************@news-text.cableinet.net... I have wittled down my errors from 12 to 2, but the 2 it shows i can't really do anything about.
Ah, that's where you're wrong. There's plenty you can do about it. :)
1. Line 126, column 48: there is no attribute "COLOR"
<td height="1" colspan="5"><hr size="1" color="#CCCCCC"></td>
This is presentational, so you'll want to use CSS for this job. You have
severeal options:
1. Apply a style to all of your <hr> elements that make them 1px high with a
color of #CCCCCC. In the head of your document (or in an external style
sheet), add the following:
<style type="text/css">
hr { height: 1px; color: #CCCCCC; }
</style>
Then replace <hr size="1" color="#CCCCCC"> with <hr>. The end result will
be valid, and should look like what you had before.
2. Apply a class to specific <hr> elements that you want to have these
properties. In the head of your document (or in an external style sheet),
add the following:
<style type="text/css">
..seperator { height: 1px; color: #CCCCCC; }
</style>
Then put this in your HTML <hr class="seperator">
(Note, you can call the class name anything you'd like, as long as what's in
the HTML matches your CSS, and assuming you follow CSS naming rules).
3. Apply an ID to a single <hr> element that you want to have these
properties. In the head of your document (or in an external style sheet),
add the following:
<style type="text/css">
#seperator { height: 1px; color: #CCCCCC; }
</style>
Then put this in your HTML <hr id="seperator">
(Note, you can call the ID name anything you'd like, as long as what's in
the HTML matches your CSS, and assuming you follow CSS naming rules).
2. Line 286, column 27: there is no attribute "BACKGROUND"
<td width="4" background="right-bittorrent-bg.gif"> </td>
Again, presentational. From the looks of it, this table is being used for
layout (which is a job for CSS, not HTML). However, rather than lecture you
on the err of your ways...
<style type="text/css">
#rightbittorrentlayout { background: url(right-bittorrent-bg.gif) no-repeat
top left; }
</style>
<td id="rightbittorrentlayout"> </td> Dreamweaver MX suggests both the COLOR and BACKGROUND attributes on it's auto pop-up thing while you're typing, so either DW is wrong or the validator is wrong. What am I doing wrong to get these errors?
Dreamweaver is wrong.
My recommendation to you would be to learn some CSS. It's not difficult to
learn, and it's the new standard for presentational properties of a web
page. The spec is available on the W3 website ( www.w3.org) and I'm sure you
can probably find some tutorials if you Google search.
Regards,
Peter Foti
StardogChampion wrote: I have wittled down my errors from 12 to 2, but the 2 it shows i can't really do anything about.
1. Line 126, column 48: there is no attribute "COLOR"
<td height="1" colspan="5"><hr size="1" color="#CCCCCC"></td>
2. Line 286, column 27: there is no attribute "BACKGROUND"
<td width="4" background="right-bittorrent-bg.gif"> </td>
Validation aside, these are presentation issues, and are best left to
css. And if you put them where they belong, i.e., in an external css
file, the html may validate. But it looks like you have more
important things to worry about. Are those tables for layout?
Dreamweaver MX suggests both the COLOR and BACKGROUND attributes on it's auto pop-up thing while you're typing, so either DW is wrong or the validator is wrong.
Unless there is a bug in the validator, and noone has reported any to
explain what you are seeing, the validator is only doing its job,
reporting that the html does not conform to the spec that you've
claimed it conforms to. In other words, Dreamweaver is wrong.
What am I doing wrong to get these errors?
....using Dreamweaver. ;-)
At the top i have: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
No uri? http://www.w3.org/QA/2002/04/valid-dtd-list.html
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
Headers to declare content type should be sent out in the headers of
the html file to be sent, not in the html itself.
Figure out how to send correct headers, and if you're using tables for
layout, stop. These are far more important, imho, than whether your
html validates.
--
Brian
follow the directions in my address to email me
"Peter Foti" <pe****@systolicNOSPAMnetworks.com> wrote in message
news:vv************@corp.supernews.com... "StardogChampion" <st*************@blueyonder.co.uk> wrote in message news:W0*********************@news-text.cableinet.net... I have wittled down my errors from 12 to 2, but the 2 it shows i can't really do anything about. Ah, that's where you're wrong. There's plenty you can do about it. :)
1. Line 126, column 48: there is no attribute "COLOR"
<td height="1" colspan="5"><hr size="1" color="#CCCCCC"></td>
This is presentational, so you'll want to use CSS for this job. You have severeal options: 1. Apply a style to all of your <hr> elements that make them 1px high with
a color of #CCCCCC. In the head of your document (or in an external style sheet), add the following:
<style type="text/css"> hr { height: 1px; color: #CCCCCC; } </style>
Then replace <hr size="1" color="#CCCCCC"> with <hr>. The end result will be valid, and should look like what you had before.
2. Apply a class to specific <hr> elements that you want to have these properties. In the head of your document (or in an external style sheet), add the following:
<style type="text/css"> .seperator { height: 1px; color: #CCCCCC; } </style>
Then put this in your HTML <hr class="seperator"> (Note, you can call the class name anything you'd like, as long as what's
in the HTML matches your CSS, and assuming you follow CSS naming rules).
3. Apply an ID to a single <hr> element that you want to have these properties. In the head of your document (or in an external style sheet), add the following:
<style type="text/css"> #seperator { height: 1px; color: #CCCCCC; } </style>
Then put this in your HTML <hr id="seperator"> (Note, you can call the ID name anything you'd like, as long as what's in the HTML matches your CSS, and assuming you follow CSS naming rules).
2. Line 286, column 27: there is no attribute "BACKGROUND"
<td width="4" background="right-bittorrent-bg.gif"> </td>
Again, presentational. From the looks of it, this table is being used for layout (which is a job for CSS, not HTML). However, rather than lecture
you on the err of your ways...
<style type="text/css"> #rightbittorrentlayout { background: url(right-bittorrent-bg.gif)
no-repeat top left; } </style>
<td id="rightbittorrentlayout"> </td>
Dreamweaver MX suggests both the COLOR and BACKGROUND attributes on it's auto pop-up thing while you're typing, so either DW is wrong or the validator is wrong. What am I doing wrong to get these errors? Dreamweaver is wrong.
My recommendation to you would be to learn some CSS. It's not difficult
to learn, and it's the new standard for presentational properties of a web page. The spec is available on the W3 website (www.w3.org) and I'm sure
you can probably find some tutorials if you Google search.
Regards, Peter Foti
Thank you for your thourough explanations. I have used your second step to
fix my horizontal rules, since i already had an external stylesheet. So
basically i need to remember that CSS is for layout and presentation, not
HTML!
<style type="text/css"> #rightbittorrentlayout { background: url(right-bittorrent-bg.gif)
no-repeat top left; } </style>
<td id="rightbittorrentlayout"> </td>
Can i put ".rightbittorrentlayout { background: url(right-bittorrent-bg.gif)
no-repeat top left; }" in my stylesheet and use <td
class="rightbittorrentlayout">? I could've tried it already rather than
typing out another question... Thanks again, i'll read up some more on CSS.
"Brian" <us*****@julietremblay.com.invalid-remove-this-part> wrote in
message news:UyhIb.237311$_M.1045450@attbi_s54... StardogChampion wrote: I have wittled down my errors from 12 to 2, but the 2 it shows i can't really do anything about.
1. Line 126, column 48: there is no attribute "COLOR"
<td height="1" colspan="5"><hr size="1" color="#CCCCCC"></td>
2. Line 286, column 27: there is no attribute "BACKGROUND"
<td width="4" background="right-bittorrent-bg.gif"> </td> Validation aside, these are presentation issues, and are best left to css. And if you put them where they belong, i.e., in an external css file, the html may validate. But it looks like you have more important things to worry about. Are those tables for layout?
I'm guessing they are, i remember reading a while ago about using CSS to
make tables but i didn't properly learn or use it, i'll go look at some
tutorials. Dreamweaver MX suggests both the COLOR and BACKGROUND attributes on it's auto pop-up thing while you're typing, so either DW is wrong or the validator is wrong.
Unless there is a bug in the validator, and noone has reported any to explain what you are seeing, the validator is only doing its job, reporting that the html does not conform to the spec that you've claimed it conforms to. In other words, Dreamweaver is wrong.
What am I doing wrong to get these errors?
...using Dreamweaver. ;-)
At the top i have: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
No uri? http://www.w3.org/QA/2002/04/valid-dtd-list.html
This was put at the top by Dweaver, so i just left it there. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
This IS in the <head> of my page, i was just pasting them since those are
the two parts which show what the validator looks for (encoding and
doctype).
Headers to declare content type should be sent out in the headers of the html file to be sent, not in the html itself.
Figure out how to send correct headers, and if you're using tables for layout, stop. These are far more important, imho, than whether your html validates.
-- Brian follow the directions in my address to email me
Thanks!
"StardogChampion" <st*************@blueyonder.co.uk> wrote in message
news:CX*********************@news-text.cableinet.net... "Peter Foti" <pe****@systolicNOSPAMnetworks.com> wrote in message news:vv************@corp.supernews.com... "StardogChampion" <st*************@blueyonder.co.uk> wrote in message news:W0*********************@news-text.cableinet.net... I have wittled down my errors from 12 to 2, but the 2 it shows i can't really do anything about. Ah, that's where you're wrong. There's plenty you can do about it. :)
1. Line 126, column 48: there is no attribute "COLOR"
<td height="1" colspan="5"><hr size="1" color="#CCCCCC"></td>
This is presentational, so you'll want to use CSS for this job. You
have severeal options: 1. Apply a style to all of your <hr> elements that make them 1px high
with a color of #CCCCCC. In the head of your document (or in an external style sheet), add the following:
<style type="text/css"> hr { height: 1px; color: #CCCCCC; } </style>
Then replace <hr size="1" color="#CCCCCC"> with <hr>. The end result
will be valid, and should look like what you had before.
2. Apply a class to specific <hr> elements that you want to have these properties. In the head of your document (or in an external style
sheet), add the following:
<style type="text/css"> .seperator { height: 1px; color: #CCCCCC; } </style>
Then put this in your HTML <hr class="seperator"> (Note, you can call the class name anything you'd like, as long as
what's in the HTML matches your CSS, and assuming you follow CSS naming rules).
3. Apply an ID to a single <hr> element that you want to have these properties. In the head of your document (or in an external style
sheet), add the following:
<style type="text/css"> #seperator { height: 1px; color: #CCCCCC; } </style>
Then put this in your HTML <hr id="seperator"> (Note, you can call the ID name anything you'd like, as long as what's
in the HTML matches your CSS, and assuming you follow CSS naming rules).
2. Line 286, column 27: there is no attribute "BACKGROUND"
<td width="4" background="right-bittorrent-bg.gif"> </td>
Again, presentational. From the looks of it, this table is being used
for layout (which is a job for CSS, not HTML). However, rather than lecture you on the err of your ways...
<style type="text/css"> #rightbittorrentlayout { background: url(right-bittorrent-bg.gif) no-repeat top left; } </style>
<td id="rightbittorrentlayout"> </td>
Dreamweaver MX suggests both the COLOR and BACKGROUND attributes on
it's auto pop-up thing while you're typing, so either DW is wrong or the validator is wrong. What am I doing wrong to get these errors?
Dreamweaver is wrong.
My recommendation to you would be to learn some CSS. It's not difficult to learn, and it's the new standard for presentational properties of a web page. The spec is available on the W3 website (www.w3.org) and I'm sure you can probably find some tutorials if you Google search.
Regards, Peter Foti
Thank you for your thourough explanations. I have used your second step to fix my horizontal rules, since i already had an external stylesheet. So basically i need to remember that CSS is for layout and presentation, not HTML!
<style type="text/css"> #rightbittorrentlayout { background: url(right-bittorrent-bg.gif) no-repeat top left; } </style>
<td id="rightbittorrentlayout"> </td>
Can i put ".rightbittorrentlayout { background:
url(right-bittorrent-bg.gif) no-repeat top left; }" in my stylesheet and use <td class="rightbittorrentlayout">? I could've tried it already rather than typing out another question... Thanks again, i'll read up some more on
CSS.
It's OK, i tried it and it works, wahey. Thanks.
"StardogChampion" <st*************@blueyonder.co.uk> wrote in message
news:o6*********************@news-text.cableinet.net... <style type="text/css"> #rightbittorrentlayout { background: url(right-bittorrent-bg.gif) no-repeat top left; } </style>
<td id="rightbittorrentlayout"> </td>
Can i put ".rightbittorrentlayout { background:
url(right-bittorrent-bg.gif) no-repeat top left; }" in my stylesheet and use <td class="rightbittorrentlayout">? I could've tried it already rather than typing out another question... Thanks again, i'll read up some more on CSS.
It's OK, i tried it and it works, wahey. Thanks.
Yeah, I got lazy at the end there and didn't duplicate the examples I gave
for the <hr>. :)
Pete
"Peter Foti" <pe****@systolicNOSPAMnetworks.com> wrote in message
news:vv************@corp.supernews.com...
[snip] 2. Apply a class to specific <hr> elements that you want to have these properties. In the head of your document (or in an external style sheet), add the following:
<style type="text/css"> .seperator { height: 1px; color: #CCCCCC; } </style>
Then put this in your HTML <hr class="seperator">
I'm not in the habit of picking on people's spelling, but using misspelled
words in code causes maintenance headaches, since not everybody notices a
previous misspelling, and when they they have the misfortune of using the
correct spelling in new code, it tends to mess things up. :-) It's
"separator".
On Tue, 30 Dec 2003, Harlan Messinger wrote: I'm not in the habit of picking on people's spelling, but using misspelled words in code causes maintenance headaches, since not everybody notices a previous misspelling, and when they they have the misfortune of using the correct spelling in new code, it tends to mess things up.
Indeed - like "Referer" :-(
See RFC2616 section 14.36 for the correct spelling :-((
"Alan J. Flavell" <fl*****@ph.gla.ac.uk> wrote in message
news:Pi*******************************@ppepc56.ph. gla.ac.uk... On Tue, 30 Dec 2003, Harlan Messinger wrote:
I'm not in the habit of picking on people's spelling, but using
misspelled words in code causes maintenance headaches, since not everybody notices
a previous misspelling, and when they they have the misfortune of using
the correct spelling in new code, it tends to mess things up.
Indeed - like "Referer" :-(
See RFC2616 section 14.36 for the correct spelling :-((
Exactly! Of course, even correct spellings can leave room for error--is it
LOGON_USER or LOGIN_USER? :-(((
StardogChampion wrote: Headers to declare content type should be sent out in the headers of the html file to be sent, not in the html itself.
This IS in the <head> of my page, i was just pasting them since those are the two parts which show what the validator looks for (encoding and doctype).
The <head> portion of an HTML document, and the http headers sent before a
file are two different things. http://www.htmlhelp.com/tools/validator/charset.html might be helpful.
--
David Dorward <http://dorward.me.uk/>
"Brian" <us*****@julietremblay.com.invalid-remove-this-part> wrote in
message news:UyhIb.237311$_M.1045450@attbi_s54... StardogChampion wrote: I have wittled down my errors from 12 to 2, but the 2 it shows i can't really do anything about.
1. Line 126, column 48: there is no attribute "COLOR"
<td height="1" colspan="5"><hr size="1" color="#CCCCCC"></td>
2. Line 286, column 27: there is no attribute "BACKGROUND"
<td width="4" background="right-bittorrent-bg.gif"> </td>
Validation aside, these are presentation issues, and are best left to css. And if you put them where they belong, i.e., in an external css file, the html may validate. But it looks like you have more important things to worry about. Are those tables for layout?
Dreamweaver MX suggests both the COLOR and BACKGROUND attributes on it's auto pop-up thing while you're typing, so either DW is wrong or the validator is wrong.
Unless there is a bug in the validator, and noone has reported any to explain what you are seeing, the validator is only doing its job, reporting that the html does not conform to the spec that you've claimed it conforms to. In other words, Dreamweaver is wrong.
What am I doing wrong to get these errors?
...using Dreamweaver. ;-)
At the top i have: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
No uri? http://www.w3.org/QA/2002/04/valid-dtd-list.html
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
Headers to declare content type should be sent out in the headers of the html file to be sent, not in the html itself.
Figure out how to send correct headers, and if you're using tables for layout, stop. These are far more important, imho, than whether your html validates.
-- Brian follow the directions in my address to email me
I've been looking at some CSS layout tutorials, but all the example pages
they show you seem to "squash" when the browser is minimized e.g. http://www.alistapart.com/d/slashdot/ - this is a CSS re-design of
slashdot's code. When you resize it, some images overlap and a host of other
things. Is there a way to set a width so the browser can't "squash" your
text?
"StardogChampion" <st*************@blueyonder.co.uk> wrote in message
news:W0*********************@news-text.cableinet.net... I have wittled down my errors from 12 to 2, but the 2 it shows i can't really do anything about. For the first if I delete the color attribute obviously it changes colour which isn't what i want.
COLOR is IE-specific. Use CSS instead.
For the second i'm not really sure about.
BACKGROUND is not in the standards, but is supported by antique browsers
such as NN4. Use CSS. Also use BACKGROUND if you need to support antique
browsers that provide inadequate CSS support, and learn to live with such
validation errors. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: R. Rajesh Jeba Anbiah |
last post by:
I would like to know what HTML standard will be better for PHP
webapplications? Right now, I use HTML 4.01 Transitional. And like to
know what *you* PHP programmers prefer? and which is good? TIA....
|
by: CJM |
last post by:
I'm adding some extra features to an intranet-based ASP application...(IE6
clients)
As part of the process, I thought I would give the html a mid-life upgrade,
ie. remove much of the tag-soup,...
|
by: Marinemasters |
last post by:
I used the W3C markup and validation service for http://www.wasmundbindery.com
and got this reply back. I don't understand what it means or how to fix it.
The DOCTYPE Declaration in your...
|
by: Steve Franks |
last post by:
When I compile my application if there are any .net coding errors they show
up fine in the error list in VS.NET 2005 following my attempt to compile.
However there are also a ton of other errors...
|
by: Robert |
last post by:
I have a large web site converted from 1.1 to 2.0 and in VS 2005, the IDE
complains that in the ASPX file (html source):
Error 1 Element 'stylesheet' is not a known element. This can...
|
by: Arthur Dent |
last post by:
Hello all, ive been programming with ASP.NET since it came out, but am just
getting my feet with now with v.2.
Ive noticed something strange in the way my HTML tables get rendered with 2.
I use...
|
by: Rolf Welskes |
last post by:
Hello,
if I have for example:
<table style="width: 100%; height: 100%;" border="1">
<tr>
<td style="width: 100px">k
</td>
<td style="width: 100px">k
</td>
</tr>
|
by: Theadmin77 |
last post by:
Ok ,i have to create a page to allow entry of user information;all fields must be validated and error displayed otherwise
* First Name (limit 25 characters)
* Last Name (limit 25...
|
by: Rulenoff |
last post by:
I want to thank you in advance. I was able to clean up 20 errors since iv'e last posted and now I have what I believe the right doctype loading correctly. However I have 10 errors remaining on my...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
|
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |