Jump to content

XHTML valid site & firefox


zeidhaddadin
 Share

Recommended Posts

Your coding is not anywhere near XHTML valid though so why do you have an image saying it is?Validation errorsAlso tables should not be used for layout and styles should be in CSS not in with the rest of your XHTML.Right the reason it plays up once you add the XHTML doc type is cos it swiches from reading your page in quirks mode to XHTML strict mode, in quirks mode the browser will guess at what it thinks is right to do instead of doing as the coding says.

Link to comment
Share on other sites

Your coding is not anywhere near XHTML valid though so why do you have an image saying it is?Validation errorsAlso tables should not be used for layout and styles should be in CSS not in with the rest of your XHTML.Right the reason it plays up once you add the XHTML doc type is cos it swiches from reading your page in quirks mode to XHTML strict mode, in quirks mode the browser will guess at what it thinks is right to do instead of doing as the coding says.

No the page is 100% valid, but all these problems are comming from the ads and web hosting server,i had tested my xhtml code in w3 and it was validated.
Link to comment
Share on other sites

No the page is 100% valid, but all these problems are comming from the ads and web hosting server,i had tested my xhtml code in w3 and it was validated.

It is still only transitional valid even without the ads, really you should be making it valid with the strick doc type though not the transitional doc type.Transitional doc type is for old sites just to get by on for the min any new sites should be made with the strict doc type. Well thats the way I see it anyways.As for why your having problems with validation just cos of Google ads I dont know why as I have never had Google ads on any of my sites.But in the code you have.
</object></layer></div></span></style></noscript></table></script></applet><script language="javascript">var google_language="en";var adHB=true; </script><script language="javascript" src="http://www.brinkster.com/adplace.js"></script><script language="javascript">wDoL("top","D3D80WT");</script><script language="javascript">wCls("D3D80WT");</script><script language="javascript">wDoL("btm","D3D80WT");</script><script language="javascript">showA("D3D80WT");</script><div style="font-family:Verdana, Arial, Helvetica, sans-serif; color:#666666; font-size:9px">Web Hosting by <a href="http://www.brinkster.com" style="color:#000000" target="_blank">Brinkster</a></div>

Now the first 9 tags out of that are all closing none existant elements. I would start by removing them.Then the rest of the errors can be fixed by putting type="text/javascript" instead of language="javascript"

</object></layer></div></span></style></noscript></table></script></applet>

Heres one I made earlyer.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html lang="US-EN"><head><title> zeid maps </title><script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAATf96M4Ado6nZ33LhiYxZGhR39TGh8kDYCdsVOcL7ZaJWYgWC5hRFPtG0hxZWbTvIBYcKHVi4V2fWSw"            type="text/javascript"></script>    <script type="text/javascript">    //<![CDATA[    function load() {      if (GBrowserIsCompatible()) {        var map = new GMap2(document.getElementById("map"));        map.addControl(new GMapTypeControl());         map.addControl(new GScaleControl());         map.addControl(new GSmallMapControl());         map.setCenter(new GLatLng(37.001953125, 31.57853542647338), 1);      }    }    //]]>    </script></head><body onload="load()" onunload="GUnload()" link="#000000" vlink="#000000" alink="#000000"><!-- BEGIN text generated by server. PLEASE REMOVE --><script type="text/javascript">var google_language="en";var adHB=true; </script><script type="text/javascript" src="http://www.brinkster.com/adplace.js"></script><script type="text/javascript">wDoL("top","D3D80WT");</script><script type="text/javascript">wCls("D3D80WT");</script><script type="text/javascript">wDoL("btm","D3D80WT");</script><script type="text/javascript">showA("D3D80WT");</script><div style="font-family:Verdana, Arial, Helvetica, sans-serif; color:#666666; font-size:9px">Web Hosting by <a href="http://www.brinkster.com" style="color:#000000" target="_blank">Brinkster</a></div><!-- END text generated by server. PLEASE REMOVE --><div align="left">  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="716" id="AutoNumber1">    <tr>      <td width="782" height="22" colspan="3"> </td>    </tr>    <tr>      <td width="782" height="26" bgcolor="#F5F5F5" colspan="3"><font face="Arial" size="2"> [<u><a href="javascript:window.print()"><font color="#000000">PRINT MAP</font></a></u>]       - [<u><a href="fpmode.asp"><font color="#000000">FP MODE</font></a></u>] - [<u><a href="index.asp"><font color="#000000">REFRESH MAP</font></a></u>]</font></td>    </tr>    <tr>      <td width="391" height="160"><div id="map" style="width: 410px; height: 160px"></div></td>      <td width="10" height="160" bgcolor="#E1F0FF"> </td>      <td width="381" height="160" bgcolor="#E1F0FF">      <font face="Arial" size="2">HELP BUILDING THE BEST MAPS EXPLORING TOOL, ENTER       OUR      </font>      <font color="#C0C0C0" face="Arial" size="2">      <a href="http://sourceforge.net/projects/zeidmaps/"><font color="#000000">      PROJECT'S LAB</font></a></font><font face="Arial" size="2">.</font><p>      <font face="Arial" size="2">      THIS PROJECT CONTAINS VALID XHTML PAGES.</font></p>      <p>      <img border="0" src="images/valid-xhtml10.gif" alt=""></img></p>      </td>    </tr>    <tr>      <td width="782" height="16" colspan="3"></td>    </tr>    <tr>      <td width="782" height="16" colspan="3">      <p align="left"><font size="1" face="Arial" color="#C0C0C0">THIS PROJECT       GETS MAPS AND SATELLITE IMAGES FROM GOOGLE.COM, AND IT HAS THE RIGHT TO       STOP THIS SERVICE WHENEVER IT WANTS, PROJECT AND IDEAS ARE COPYRIGHTED TO       ZEID PROJECT ©2006, PROJECT LAST EDITED ON      01-05-2006.</font></p></td>    </tr>    </table></div></body></html>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...