Unexpected validating error

I added the following code to an existing page and the appropriate code to the css. It came from another page that works without any problem.

However, in this page it does not validate and screws up the page

The new code is

<div id="converter">
<div class="hiddenlink">
<div style="width:160px; background-color:#FFFFDB;border:2px solid #888;text-align:center;margin:0px;padding:0px">
<div style="background-color:#CD853F;border-bottom:1px solid #888;width:100%;margin:0px;padding:0px;align:center;text-align:center;"><a class="Vlabel" style="font-size:12px!important; line-height:16px!important;font-family: arial;text-decoration:none;color:#132105;margin-bottom:6px;"><b>Currency Calculator</b></a></div>
<script type="text/javascript" src="http://www.fx-rate.net/converter.php?layout=vertical&amp;amount=&amp;tcolor=132105&amp;default_pair=JPY/GBP"> </script></div>
<!-- End of Currency Converter script --></div>

<div id="mask"></div>
<!-- close converter --></div>

The problem page is http://pintotours.net/TEST/IbisKyotoStation.html

Thank you

It says you have a stray end tag:

Stray end tag div.
From line 598, column 5; to line 598, column 10

Find and remove.
It is the one commented as Close maincontainer

</div><!-- close maincontainer -->
1 Like

Hi, thanks

I had actually just corrected the problem by deleting one of the closing divs in the converter,

But the question remains: how come in the “good” page with the same code that closing div is accepted?

If you take the converter code out altogether there is no problem,

Well the pages are not identical.
The code you posted first has 5 opening <div>s and 6 closing. The page that validates must have one more opening tag somewhere before that code.

1 Like

The “Good” page also has 5 opening and 6 closing which is obviously wrong. Yet, it validates, probably because there is a missing div somewhere…

…and I thought I was going to have a quiet day!

Thanks, I will look for the mistake in the “good” page.

RESOLVED! Temporary links have been retired

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.