Pete Richard 0 Posted November 5, 2006 Report Share Posted November 5, 2006 Hi, I am trying to change my html into xhtml. This is what i managed so far, but i would appreiate any comments or suggestions on improving the standard of coding for w3c compliance.What coding to ensure cross-browser capatable.Someone suggested to use Ajax for the drop down lists to get the items, etc. What is Ajax and best way to achieve this? I think css might be good idea, but would really appreciate any one who can highlight the wrong or improvement coding on the below:<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Ajax JSon test</title></head><body><table width="100%" height="600" border="0" cellpadding="0"cellspacing="0"><tr bgcolor="gray" height="100"><td align="left" width="300px"><font size="+1"><b>YYYYYYYYY<br />YYYYYYYYY<br />YYYYYYYY<br /></b></font></td><td align="right" valign="bottom"><i><font size="-1">Othertext</font><a href="">fcghbvgyhb</a></i></td></tr><tr valign="top" bgcolor="green"><td><center><font color="#EEEEEE">Page</font></center></td><td><table><tr><td align="center">Food</td><td><select><option>Fruits</option><option>Vegetables</option><option>Meats</option></select></td></tr><tr><td><center>Type</center></td><td></td></tr></table></td></tr><tr><td colspan="2">Please achieve thefollowing:<br /><ol><li>A carrott.</li><li>A barret.</li><li>A rabbit.</li><li>A chicken</li><li>A coconut</li></ol>hello</a></td></tr><tr bgcolor="gray" height="40"><td colspan="2"><center><small>Footer <script language="JavaScript" type="text/javascript">//<![CDATA[<!--function SymError(){ return true;}window.onerror = SymError;var SymRealWinOpen = window.open;function SymWinOpen(url, name, attributes){ return (new Object());}window.open = SymWinOpen;//-->//]]></script> <script type="text/javascript"></script></small></center></td></tr></table><script type="text/javascript">//<![CDATA[today = new Date( ); birthday = new Date( ); birthday.setMonth(11); birthday.setDate(15); if (today.getTime( ) < birthday.getTime( )) { diff = birthday.getTime( ) - today.getTime( ); diff = Math.floor(diff / (1000 * 60 * 60 * 24)); document.write('<font size=-2> There are ' + diff + ' days until December 15. <\/font>'); }//]]></script><script language="JavaScript" type="text/javascript">//<![CDATA[<!--var SymRealOnLoad;var SymRealOnUnload;function SymOnUnload(){ window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload();}function SymOnLoad(){ if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload;}SymRealOnLoad = window.onload;window.onload = SymOnLoad;//-->//]]></script></body></html> Quote Link to post Share on other sites
croatiankid 0 Posted November 5, 2006 Report Share Posted November 5, 2006 wrap the code in [ code ] and [ /code ]. You don't have a DOCTYPE, <font> is deprecated (you must use css instead) Quote Link to post Share on other sites
real_illusions 0 Posted November 5, 2006 Report Share Posted November 5, 2006 <center> is depracted tooand i suggest a tableless designgo for more a css and div design:) Quote Link to post Share on other sites
Err 10 Posted November 5, 2006 Report Share Posted November 5, 2006 http://validator.w3.org/Validate your document to insure proper code. It will point out the things you need to correct in order to make your document XHTML valid. Quote Link to post Share on other sites
daveWare 0 Posted November 6, 2006 Report Share Posted November 6, 2006 Someone suggested to use Ajax for the drop down lists to get the items, etc. What is Ajax and best way to achieve this?You can also make drop-down lists using CSS. http://www.alistapart.com/articles/horizdropdowns I'm not all that familiar with AJAX, but my understanding is that AJAX allows you to get information without refreshing the page. Don't know how it would work for a nav itemDave Quote Link to post Share on other sites
Naive Amoeba 0 Posted November 7, 2006 Report Share Posted November 7, 2006 So is bgcolor, align, valign, width, height, border, cellpadding, cellspacing etc :)Everything can be done with CSS. I mean, everything. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.