Jump to content

What CSS elements do i need to use from this piece of code??


Pete Richard

Recommended Posts

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 know that to get the best out of this to do CSS and would really appreciate any one who can highlight the key aspects of this code for CSS and what key terms I will need on the below (of course I am looking it up myself now, but i am in a little hurry and any help will speed it up) thanks:<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>

Link to comment
Share on other sites

If I understand correctly you are trying to find a fast way to convert your page from html to xhtml right?If so I would recommend using Dreamweaver since a search and replace tool is included which is pretty powerful. You can search for a tag and replace with another (e.g.: <font> by <span style="color: red;">)

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
×
×
  • Create New...