Member
From: Portugal
Registered: 2006-01-13
Posts: 21
I've been thanked 0 times.
Offline
My CSS is OK, but the the HTML have some errors can you help me?
My URL is: http://www.pereiradasilva.net
Thanks
Moderator
From: Yorkshire, UK
Registered: 2006-08-19
Posts: 2860
I've been thanked 85 times.
Offline
fairly blunt and to the point answer, feel freet o ask any more questions
line 81 column 5 - Warning: <a> discarding newline in URI reference
line 84 column 31 - Warning: missing </a> before <table>
line 89 column 1 - Warning: discarding unexpected </td>
line 89 column 6 - Warning: discarding unexpected </tr>
line 89 column 19 - Warning: discarding unexpected </a>
line 89 column 39 - Warning: replacing <p> by <br>
line 89 column 39 - Warning: inserting implicit <br>
line 89 column 134 - Warning: unescaped & or unknown entity "&bgc"
line 89 column 145 - Warning: unescaped & or unknown entity "&fgc"
line 89 column 156 - Warning: unescaped & or unknown entity "&fn"
line 89 column 174 - Warning: unescaped & or unknown entity "&fs"
line 89 column 180 - Warning: unescaped & or unknown entity "&fs"
line 89 column 186 - Warning: unescaped & or unknown entity "&digits"
line 89 column 195 - Warning: unescaped & or unknown entity "&gif"
line 4 column 119 - Warning: <script> inserting "type" attribute
line 43 column 235 - Warning: <script> inserting "type" attribute
line 62 column 17 - Warning: <body> proprietary attribute "topmargin"
line 62 column 17 - Warning: <body> proprietary attribute "marginwidth"
line 62 column 17 - Warning: <body> proprietary attribute "marginheight"
line 62 column 17 - Warning: <body> proprietary attribute "leftmargin"
line 62 column 259 - Warning: <img> lacks "alt" attribute
line 62 column 349 - Warning: <img> lacks "alt" attribute
line 62 column 445 - Warning: <img> lacks "alt" attribute
line 62 column 556 - Warning: <img> lacks "alt" attribute
line 62 column 651 - Warning: <img> lacks "alt" attribute
line 62 column 753 - Warning: <img> lacks "alt" attribute
line 62 column 848 - Warning: <img> lacks "alt" attribute
line 62 column 934 - Warning: <img> lacks "alt" attribute
line 62 column 1019 - Warning: <img> lacks "alt" attribute
line 62 column 6867 - Warning: <img> lacks "alt" attribute
line 62 column 7029 - Warning: <img> lacks "alt" attribute
line 81 column 5 - Warning: <a> escaping malformed URI reference
line 89 column 51 - Warning: <img> lacks "alt" attribute
line 89 column 392 - Warning: <script> inserting "type" attribute
line 120 column 10 - Warning: <script> inserting "type" attribute
line 62 column 7009 - Warning: trimming empty <center>
0 errors / 36 warnings
Moderator
From: Yorkshire, UK
Registered: 2006-08-19
Posts: 2860
I've been thanked 85 times.
Offline
for example, take this section
Code: html
<a href=" http://jigsaw.w3.org/css-validator/validator?uri=http://www.pereiradasilva.net
"><img style="border:0;width:88px;height:31px"
src="http://jigsaw.w3.org/css-validator/images/vcss"
alt="Valid CSS!" /></a><a href="http://www.w3.org/WAI/WCAG1AAA-Conformance"
title="Explanation of Level Triple-A Conformance"><img height="32" width="88"
src="http://www.w3.org/WAI/wcag1AAA"
alt="Level Triple-A conformance icon,
W3C-WAI Web Content Accessibility Guidelines 1.0"><table width="135" border="0" cellpadding="2" cellspacing="0">
</td></tr></table></a><BR clear="all"></P>
The closing quote for the <a href is on a new line, that means that the url you are trying to link to may have a line break in it, if the browser doesn't strip it out
there's an ampty and very poorly coded table in the middle of it
Code: html
<table width="135" border="0" cellpadding="2" cellspacing="0">
</td></tr></table>
which probably came from a WYSIWYG editor or an incomplete deletion of an original table
Member
From: Pell City, Alabama USA
Registered: 2004-11-17
Posts: 2084
I've been thanked 5 times.
Offline
Get Firefox and HTMLTidy and let it clean up your HTML automagically. View your page in the browser, then view the source of the page ( along the the errors if any ), then click a button to clean it up. Save the result and upload it.
TombOfTheMutilated.NET - Destroying The Minds of America's Youth Since 2001
Member
From: Portugal
Registered: 2006-01-13
Posts: 21
I've been thanked 0 times.
Offline
Thank you very much. I spend so many hours making a valide HTML and in five minutes you gave me the answer.
You where very kind, let me give you this words:
The noblest pleasure is the joy of understanding..
Leonardo Da Vinci
P.S. Now my site have this 15 warnings in the Firefox Tidy;
<body topmargin="0" marginwidth="0" marginheight="0" leftmargin=
"0">
<a shape="rect" name="top" id="top"></a>
<table width="760" cellspacing="0" cellpadding="0" border="0">
<tr>
<td rowspan="2"><img width="176" src=
"./templates/Movement/img/logo.gif" height="88"></td>
<td colspan="2"><img width="320" src=
"./templates/Movement/img/3E6E72/top.gif" height="64"></td>
<td rowspan="4"><img width="264" src=
"./templates/Movement/img/3E6E72/kv_dummy.jpg" height="184"></td>
</tr>
<tr>
<td colspan="2"><img width="320" src=
"./templates/Movement/img/company_name.gif" height="24"></td>
</tr>
<tr>
<td><img width="176" src=
"./templates/Movement/img/3E6E72/animation.gif" height="56"></td>
<td colspan="2"><img width="320" src=
"./templates/Movement/img/3E6E72/oben1.gif" height="56"></td>
</tr>
<tr>
<td><img width="176" src=
"./templates/Movement/img/3E6E72/oben2.gif" height="40"></td>
<td><img width="64" src="./templates/Movement/img/3E6E72/oben3.gif"
height="40"></td>
<td><img width="256" src=
"./templates/Movement/img/3E6E72/oben4.gif" height="40"></td>
How can I fixed,
Thanks again
Member
From: Pell City, Alabama USA
Registered: 2004-11-17
Posts: 2084
I've been thanked 5 times.
Offline
what are the warnings that you're getting ? I'm guessing its something about <img> lacks alt attribute ? the answer is add the alt attributes to your <img> tags obviously
but seriously, if its just warnings - gotta kind of even consider if its worth the time to fix it at this point
TombOfTheMutilated.NET - Destroying The Minds of America's Youth Since 2001
Member
From: Southwest, U.S.
Registered: 2006-10-23
Posts: 378
I've been thanked 1 times.
Offline
try replacing:
Code:
<body topmargin="0" marginwidth="0" marginheight="0" leftmargin="0">
with:
Code:
<body>
and adding to your CSS
<style type="text/css">
BODY {
font-family:Verdana, Arial, Helvetica, sans-serif;
margin: 0;
color: #FFFFFF;
}
and adding an alt attribute to your image tags like
Code:
<img width="320" src="./templates/Movement/img/3E6E72/top.gif" height="64" alt="description of image here" />
Member
From: Southwest, U.S.
Registered: 2006-10-23
Posts: 378
I've been thanked 1 times.
Offline
M1 - That was about it. Alt tags and a little proprietary attribute whining was the worst of it.
I think HTML Tidy can't write your alt tags for you is all
Member
From: Portugal
Registered: 2006-01-13
Posts: 21
I've been thanked 0 times.
Offline
Thank you very much to all of you.
It's done.
| Never |


