PDA

View Full Version : to correct the problem code


amerelgen
10-24-2008, 08:01 PM
Hello all

When I put a link sites
At this site: http://validator.w3.org/ # validate_by_input

3 says that there are errors

I know where it is no errors in haeader

The accompanying code haeder you even say where one is wrong and how to correct the error

header

<style type="text/css">
.style1 {
text-align: right;
background-image: url('tatwerweb/tatwer_02.jpg');
}
.style2 {
text-align: left;
background-image: url('tatwerweb/tatwer_02.jpg');
}
.style3 {
border-width: 0;
}
.style4 {
border-width: 0px;
}
</style>

<table style="width: 100%" dir="rtl" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="style1" style="width: 202px">
<img src="tatwerweb/tatwer_03.jpg" width="355" height="106" alt="tatwer_03" /></td>
<td class="style2">
<map name="FPMap0" id="FPMap0">
<area href="http://www.tatwerweb.com/vb/" shape="rect" coords="60, 8, 109, 29" alt="tatwerweb" />
<area href="sendmessage.php" shape="rect" coords="6, 8, 59, 29" alt="sendmessage" />
</map>
<img src="tatwerweb/tatwer_01.jpg" width="319" height="106" alt="tatwer_01" usemap="#FPMap0" class="style3" /></td>
</tr>
</table>


<table style="width: 46%; height: 34px" align="center">
<tr>
<td>
<table style="width: 49%" align="center">
<tr>
<td style="width: 133px">
<a target="_blank" href="http://www.j44n.com/vb/">
<img src="http://www.j44n.com/vb/j44n.gif" width="160" height="60" class="style4" alt="44n" /></a></td>
<td>
<a target="_blank" href="http://www.tatwerweb.com/vb/showthread.php?p=587#post587">
<img src="http://www.tatwerweb.com/wer.gif" width="260" height="60" class="style4" alt="wer" /></a></td>
</tr>
</table>
<table style="width: 41%" align="center" dir="ltr">
<tr>
<td style="width: 148px">
<a target="_blank" href="http://www.yaho1.com/vb/">
<img src="http://www.yaho1.com/s3.gif" width="162" height="60" class="style4" alt="s3"/></a></td>
<td>
<a target="_blank" href="http://fofo9.com/">
<img src="http://fofo9.com/1/2_01195757107.gif" width="150" height="60" class="style4" alt="2_01195757107" /></a></td>
</tr>
</table>
</td>
</tr>
</table>


$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]

Deepdog009
10-25-2008, 03:50 AM
amerelgen,,,
The best way to resolve most or all error's is to DOWNLOAD FIREFOX...>>> FIREBUG <<< and view in HTML editor...

If you need more help,,, please post LINK to page that is causing error's,,, and I will help you understand were the issue's are,,, and how to resolve them...

amerelgen
10-25-2008, 05:04 PM
amerelgen,,,
The best way to resolve most or all error's is to DOWNLOAD FIREFOX...>>> FIREBUG <<< and view in HTML editor...

If you need more help,,, please post LINK to page that is causing error's,,, and I will help you understand were the issue's are,,, and how to resolve them...

first, thank you very much on assistance

this link Forum: http://www.tatwerweb.com/vb/

i hope you put here to correct errors

firefox browser there with me but I do not know used to correct errors?

thank you ?

Lynne
10-25-2008, 05:26 PM
From here (http://www.w3schools.com/TAGS/tag_style.asp):

HTML <style> tag

Definition and Usage

Defines a style in a document.
The style element goes in the head section.

You need to move the <style> tag to your head section - it can't be in your body tag.

amerelgen
10-25-2008, 11:03 PM
I think what you mean such

<html>

<head>
</head>

<body>
<style type="text/css">
.style1 {
text-align: right;
background-image: url('tatwerweb/tatwer_02.jpg');
}
.style2 {
text-align: left;
background-image: url('tatwerweb/tatwer_02.jpg');
}
.style3 {
border-width: 0;
}
.style4 {
border-width: 0px;
}
</style>

</body>

</html>


?

Lynne
10-25-2008, 11:14 PM
No, I mean the style tags must be *in* the head:
<html>

<head>

<style type="text/css">
.style1 {
text-align: right;
background-image: url('tatwerweb/tatwer_02.jpg');
}
.style2 {
text-align: left;
background-image: url('tatwerweb/tatwer_02.jpg');
}
.style3 {
border-width: 0;
}
.style4 {
border-width: 0px;
}
</style>
</head>

<body>

</body>

</html>

amerelgen
10-25-2008, 11:42 PM
No, I mean the style tags must be *in* the head:
<html>

<head>

<style type="text/css">
.style1 {
text-align: right;
background-image: url('tatwerweb/tatwer_02.jpg');
}
.style2 {
text-align: left;
background-image: url('tatwerweb/tatwer_02.jpg');
}
.style3 {
border-width: 0;
}
.style4 {
border-width: 0px;
}
</style>
</head>

<body>

</body>

</html>

after the code developed
the error is 3 now has become a code that errors 9

ido not know why this did not solve the problem

Deepdog009
10-26-2008, 02:24 AM
after the code developed
the error is 3 now has become a code that errors 9

ido not know why this did not solve the problem


***********************************************
amerelgen,,, sorry just got back...

Most of your issues stem from having double html tags within your output page...

double </html> tags
double </style> tags <<<... some are in wrong placement...
double </body> tags
double </meta> tags
double <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> tags


***********************************************
You must check your code placement and delete un-necessary code...

That will resolve 100% of issues...


***********************************************

Did you download FIREBUG to assist with corrections???

amerelgen
10-26-2008, 12:31 PM
***********************************************
amerelgen,,, sorry just got back...

Most of your issues stem from having double html tags within your output page...

double </html> tags
double </style> tags <<<... some are in wrong placement...
double </body> tags
double </meta> tags
double <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> tags


***********************************************
You must check your code placement and delete un-necessary code...

That will resolve 100% of issues...


***********************************************

Did you download FIREBUG to assist with corrections???

thank you very much

but I do not understand how I put this

please take this the right way to code
not to show errors

<style type="text/css">
.style1 {
text-align: right;
background-image: url('tatwerweb/tatwer_02.jpg');
}
.style2 {
text-align: left;
background-image: url('tatwerweb/tatwer_02.jpg');
}
.style3 {
border-width: 0;
}
.style4 {
border-width: 0px;
}
</style>

<table style="width: 100%" dir="rtl" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="style1" style="width: 202px">
<img src="tatwerweb/tatwer_03.jpg" width="355" height="106" alt="tatwer_03" /></td>
<td class="style2">
<map name="FPMap0" id="FPMap0">
<area href="http://www.tatwerweb.com/vb/" shape="rect" coords="60, 8, 109, 29" alt="tatwerweb" />
<area href="sendmessage.php" shape="rect" coords="6, 8, 59, 29" alt="sendmessage" />
</map>
<img src="tatwerweb/tatwer_01.jpg" width="319" height="106" alt="tatwer_01" usemap="#FPMap0" class="style3" /></td>
</tr>
</table>


<table style="width: 46%; height: 34px" align="center">
<tr>
<td>
<table style="width: 49%" align="center">
<tr>
<td style="width: 133px">
<a target="_blank" href="http://www.j44n.com/vb/">
<img src="http://www.j44n.com/vb/j44n.gif" width="160" height="60" class="style4" alt="44n" /></a></td>
<td>
<a target="_blank" href="http://www.tatwerweb.com/vb/showthread.php?p=587#post587">
<img src="http://www.tatwerweb.com/wer.gif" width="260" height="60" class="style4" alt="wer" /></a></td>
</tr>
</table>
<table style="width: 41%" align="center" dir="ltr">
<tr>
<td style="width: 148px">
<a target="_blank" href="http://www.yaho1.com/vb/">
<img src="http://www.yaho1.com/s3.gif" width="162" height="60" class="style4" alt="s3"/></a></td>
<td>
<a target="_blank" href="http://fofo9.com/">
<img src="http://fofo9.com/1/2_01195757107.gif" width="150" height="60" class="style4" alt="2_01195757107" /></a></td>
</tr>
</table>
</td>
</tr>
</table>


$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]

or more show possible

thank you again to help

Deepdog009
10-27-2008, 03:02 AM
thank you very much

but I do not understand how I put this

please take this the right way to code
not to show errors

<style type="text/css">
.style1 {
text-align: right;
background-image: url('tatwerweb/tatwer_02.jpg');
}
.style2 {
text-align: left;
background-image: url('tatwerweb/tatwer_02.jpg');
}
.style3 {
border-width: 0;
}
.style4 {
border-width: 0px;
}
</style>

<table style="width: 100%" dir="rtl" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="style1" style="width: 202px">
<img src="tatwerweb/tatwer_03.jpg" width="355" height="106" alt="tatwer_03" /></td>
<td class="style2">
<map name="FPMap0" id="FPMap0">
<area href="http://www.tatwerweb.com/vb/" shape="rect" coords="60, 8, 109, 29" alt="tatwerweb" />
<area href="sendmessage.php" shape="rect" coords="6, 8, 59, 29" alt="sendmessage" />
</map>
<img src="tatwerweb/tatwer_01.jpg" width="319" height="106" alt="tatwer_01" usemap="#FPMap0" class="style3" /></td>
</tr>
</table>


<table style="width: 46%; height: 34px" align="center">
<tr>
<td>
<table style="width: 49%" align="center">
<tr>
<td style="width: 133px">
<a target="_blank" href="http://www.j44n.com/vb/">
<img src="http://www.j44n.com/vb/j44n.gif" width="160" height="60" class="style4" alt="44n" /></a></td>
<td>
<a target="_blank" href="http://www.tatwerweb.com/vb/showthread.php?p=587#post587">
<img src="http://www.tatwerweb.com/wer.gif" width="260" height="60" class="style4" alt="wer" /></a></td>
</tr>
</table>
<table style="width: 41%" align="center" dir="ltr">
<tr>
<td style="width: 148px">
<a target="_blank" href="http://www.yaho1.com/vb/">
<img src="http://www.yaho1.com/s3.gif" width="162" height="60" class="style4" alt="s3"/></a></td>
<td>
<a target="_blank" href="http://fofo9.com/">
<img src="http://fofo9.com/1/2_01195757107.gif" width="150" height="60" class="style4" alt="2_01195757107" /></a></td>
</tr>
</table>
</td>
</tr>
</table>


$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]

or more show possible

thank you again to help

************************************************** *****

amerelgen,,,
Great! I viewed your updated site and you've whittled error's down to five...

Those last five error's are caused by two style body placements...

One dead form tag...
One incompleted div output...
One body error...
One incompleted td output...


************************************************** *****

I've uploaded a file that contains two html files,,, one has error's before corrections,,, and thee other has updated fixes... Good Luck 2 Ya!

************************************************** *****

Page error's aren't that bad,,, but warnings :eek:... Keep the ball rolling...

amerelgen
10-27-2008, 09:17 AM
thank you very much