SunTzu Posted October 13, 2006 Share Posted October 13, 2006 Hi to all ,This is my first post here , i am not a professional developer so i will be as brief and concise as possible.I have a very simple code only for screen (without Jscripts, JSPs, PHPs etc) but i cannot validate it.I am trying on W3C validator but i keep receiving "Unknown Parse Mode!". No other errors are reported there so i assume that this is it ... obviously. I have tried all valid DTDs but still nothing.Any suggestions ?? Link to comment Share on other sites More sharing options...
aspnetguy Posted October 13, 2006 Share Posted October 13, 2006 please post the full code Link to comment Share on other sites More sharing options...
SunTzu Posted October 13, 2006 Author Share Posted October 13, 2006 please post the full codeHere we are ...In this case i am using xhtml11 but beleive i have tried also xhtml1.0 Transitional , Strict etc ...<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE HTML PUBLIC "-//w3c//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Web Tecnologies - Homework 1</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <form method="post" action="SubmitAction.txt"> <table cellspacing="0px" summary="Top 10 Sites List!"> <colgroup> <col span="5"> <col span="1" width="1%" align="center"> </colgroup> <tr> <th width="12%" rowspan="14" style="background-image: url(alien.gif); background-repeat: repeat-y"></th> <th class="banner" colspan="5" valign="top">Welcome to our top 10 Sites List</th> </tr> <tr> <th align="left">No</th> <th>Web Site</th> <th>URL</th> <th>Keywords</th> <th>Vote</th> </tr> <tr class="rowstyle1"> <td>1</td> <td>Europe's Soccer Web Site</td> <td><a href="http://www.uefa.com">UEFA Official Site</a></td> <td>Soccer, Champions League, UEFA Cup, Matchday</td> <td><input name="vote" type="radio" value="uefa" /></td> </tr> <tr class="rowstyle2"> <td>2</td> <td>Sports Live Streaming</td> <td><a href="http://live.supersport.gr/default.aspx">Supersport-Live Streaming</a></td> <td>Streaming, live, football, Sport Events</td> <td><input name="vote" type="radio" value="supersport" /></td> </tr> <tr class="rowstyle3"> <td>3</td> <td>All about Space and Aeronautics</td> <td><a href="http://www.nasa.gov/externalflash/nasa_gen/index.html">Nasa Official Site</a></td> <td>Space, Aeronautics, Nasa, Space Shuttle, Solar System, Space Sciences</td> <td><input name="vote" type="radio" value="nasa" /></td> </tr> <tr class="rowstyle4"> <td>4</td> <td>Torrent Full Downloads</td> <td><a href="http://www.fulldls.com">Full Downloads</a></td> <td>Torrent, Free, Download, Free Software, Movies, Music</td> <td><input name="vote" type="radio" value="fulldls" /></td> </tr> <tr class="rowstyle5"> <td>5</td> <td>Web Based E-mail Service</td> <td><a href="http://www.hotmail.com">Hotmail</a></td> <td>E-mail, Messanger, POP, SMTP, MSN</td> <td><input name="vote" type="radio" value="site5" /></td> </tr> <tr class="rowstyle6"> <td>6</td> <td>News from all around the World</td> <td><a href="http://www.cnn.com">CNN World News</a></td> <td>News, World, Market, Politics</td> <td><input name="vote" type="radio" value="cnn" /></td> </tr> <tr class="rowstyle7"> <td>7</td> <td>Greek News</td> <td><a href="http://www.in.gr">In.GR</a></td> <td>Greek News, TV, Cinema, Entertainment</td> <td><input name="vote" type="radio" value="in" /></td> </tr> <tr class="rowstyle8"> <td>8</td> <td>Hellenic On-line Radio</td> <td><a href="http://www.e-radio.gr">Hellenic e-Radio</a></td> <td>Radio, Music, e-Radio, Radio Streaming</td> <td><input name="vote" type="radio" value="eradio" /></td> </tr> <tr class="rowstyle9"> <td>9</td> <td>Gateway to the European Union</td> <td><a href="http://europa.eu/">European Union Web Site</a></td> <td>Europe, Union, Europa, EU, Programmes</td> <td><input name="vote" type="radio" value="europe" /></td> </tr> <tr class="rowstyle10"> <td>10</td> <td>The latest News about Technology</td> <td><a href="http://www.insomnia.gr/">Insomina</a></td> <td>Technology, Mobile, Telephony, Telecommunications, Software, Computer</td> <td><input name="vote" type="radio" value="insomnia" /></td> </tr> <tr class="rowstyle0"> <td colspan="2"><input name="other site" type="text" value="Other Site (Description)" size="40" maxlength="50" /></td> <td><input name="other url" type="text" value="Type URL" size="30" maxlength="30"/></td> <td>Other Keywords</td> <td><input name="vote" type="radio" value="other vote" checked="checked" /></td> </tr> <tr> <td align="center" colspan="5"> <input name="send" type="submit" value="Submit" /> <input name="clear" type="reset" value="Clear All" /> </td> </tr> </table> </form> </body> </html> thnx Link to comment Share on other sites More sharing options...
aspnetguy Posted October 13, 2006 Share Posted October 13, 2006 here is the valid version of your code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Web Tecnologies - Homework 1</title><link rel="stylesheet" type="text/css" href="style.css"/><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head><body><form method="post" action="SubmitAction.txt"><table cellspacing="0px" summary="Top 10 Sites List!"><colgroup><col span="5"/><col span="1" width="1%" align="center"/></colgroup><tr><th rowspan="14" style="width:12%;background-image: url(alien.gif); background-repeat: repeat-y"></th><th class="banner" colspan="5" valign="top">Welcome to our top 10 Sites List</th></tr><tr><th align="left">No</th><th>Web Site</th><th>URL</th><th>Keywords</th><th>Vote</th></tr><tr class="rowstyle1"><td>1</td><td>Europe's Soccer Web Site</td><td><a href="http://www.uefa.com">UEFA Official Site</a></td><td>Soccer, Champions League, UEFA Cup, Matchday</td><td><input name="vote" type="radio" value="uefa" /></td></tr><tr class="rowstyle2"><td>2</td><td>Sports Live Streaming</td><td><a href="http://live.supersport.gr/default.aspx">Supersport-Live Streaming</a></td><td>Streaming, live, football, Sport Events</td><td><input name="vote" type="radio" value="supersport" /></td></tr><tr class="rowstyle3"><td>3</td><td>All about Space and Aeronautics</td><td><a href="http://www.nasa.gov/externalflash/nasa_gen/index.html">Nasa Official Site</a></td><td>Space, Aeronautics, Nasa, Space Shuttle, Solar System, Space Sciences</td><td><input name="vote" type="radio" value="nasa" /></td></tr><tr class="rowstyle4"><td>4</td><td>Torrent Full Downloads</td><td><a href="http://www.fulldls.com">Full Downloads</a></td><td>Torrent, Free, Download, Free Software, Movies, Music</td><td><input name="vote" type="radio" value="fulldls" /></td></tr><tr class="rowstyle5"><td>5</td><td>Web Based E-mail Service</td><td><a href="http://www.hotmail.com">Hotmail</a></td><td>E-mail, Messanger, POP, SMTP, MSN</td><td><input name="vote" type="radio" value="site5" /></td></tr><tr class="rowstyle6"><td>6</td><td>News from all around the World</td><td><a href="http://www.cnn.com">CNN World News</a></td><td>News, World, Market, Politics</td><td><input name="vote" type="radio" value="cnn" /></td></tr><tr class="rowstyle7"><td>7</td><td>Greek News</td><td><a href="http://www.in.gr">In.GR</a></td><td>Greek News, TV, Cinema, Entertainment</td><td><input name="vote" type="radio" value="in" /></td></tr><tr class="rowstyle8"><td>8</td><td>Hellenic On-line Radio</td><td><a href="http://www.e-radio.gr">Hellenic e-Radio</a></td><td>Radio, Music, e-Radio, Radio Streaming</td><td><input name="vote" type="radio" value="eradio" /></td></tr><tr class="rowstyle9"><td>9</td><td>Gateway to the European Union</td><td><a href="http://europa.eu/">European Union Web Site</a></td><td>Europe, Union, Europa, EU, Programmes</td><td><input name="vote" type="radio" value="europe" /></td></tr><tr class="rowstyle10"><td>10</td><td>The latest News about Technology</td><td><a href="http://www.insomnia.gr/">Insomina</a></td><td>Technology, Mobile, Telephony, Telecommunications, Software, Computer</td><td><input name="vote" type="radio" value="insomnia" /></td></tr><tr class="rowstyle0"><td colspan="2"><input name="other site" type="text" value="Other Site (Description)" size="40" maxlength="50" /></td><td><input name="other url" type="text" value="Type URL" size="30" maxlength="30"/></td><td>Other Keywords</td><td><input name="vote" type="radio" value="other vote" checked="checked" /></td></tr><tr><td align="center" colspan="5"><input name="send" type="submit" value="Submit" /><input name="clear" type="reset" value="Clear All" /></td></tr></table></form></body></html> Your main problem was that you declared the page as XML on line 1 then on line 2 said it was XHTML 1.1....this was the cause of the "Unknown Parse Mode"...I cleaned up the code a bit for you as well so it would pass validation. Link to comment Share on other sites More sharing options...
SunTzu Posted October 13, 2006 Author Share Posted October 13, 2006 here is the valid version of your code<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Web Tecnologies - Homework 1</title><link rel="stylesheet" type="text/css" href="style.css"/><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head><body><form method="post" action="SubmitAction.txt"><table cellspacing="0px" summary="Top 10 Sites List!"><colgroup><col span="5"/><col span="1" width="1%" align="center"/></colgroup><tr><th rowspan="14" style="width:12%;background-image: url(alien.gif); background-repeat: repeat-y"></th><th class="banner" colspan="5" valign="top">Welcome to our top 10 Sites List</th></tr><tr><th align="left">No</th><th>Web Site</th><th>URL</th><th>Keywords</th><th>Vote</th></tr><tr class="rowstyle1"><td>1</td><td>Europe's Soccer Web Site</td><td><a href="http://www.uefa.com">UEFA Official Site</a></td><td>Soccer, Champions League, UEFA Cup, Matchday</td><td><input name="vote" type="radio" value="uefa" /></td></tr><tr class="rowstyle2"><td>2</td><td>Sports Live Streaming</td><td><a href="http://live.supersport.gr/default.aspx">Supersport-Live Streaming</a></td><td>Streaming, live, football, Sport Events</td><td><input name="vote" type="radio" value="supersport" /></td></tr><tr class="rowstyle3"><td>3</td><td>All about Space and Aeronautics</td><td><a href="http://www.nasa.gov/externalflash/nasa_gen/index.html">Nasa Official Site</a></td><td>Space, Aeronautics, Nasa, Space Shuttle, Solar System, Space Sciences</td><td><input name="vote" type="radio" value="nasa" /></td></tr><tr class="rowstyle4"><td>4</td><td>Torrent Full Downloads</td><td><a href="http://www.fulldls.com">Full Downloads</a></td><td>Torrent, Free, Download, Free Software, Movies, Music</td><td><input name="vote" type="radio" value="fulldls" /></td></tr><tr class="rowstyle5"><td>5</td><td>Web Based E-mail Service</td><td><a href="http://www.hotmail.com">Hotmail</a></td><td>E-mail, Messanger, POP, SMTP, MSN</td><td><input name="vote" type="radio" value="site5" /></td></tr><tr class="rowstyle6"><td>6</td><td>News from all around the World</td><td><a href="http://www.cnn.com">CNN World News</a></td><td>News, World, Market, Politics</td><td><input name="vote" type="radio" value="cnn" /></td></tr><tr class="rowstyle7"><td>7</td><td>Greek News</td><td><a href="http://www.in.gr">In.GR</a></td><td>Greek News, TV, Cinema, Entertainment</td><td><input name="vote" type="radio" value="in" /></td></tr><tr class="rowstyle8"><td>8</td><td>Hellenic On-line Radio</td><td><a href="http://www.e-radio.gr">Hellenic e-Radio</a></td><td>Radio, Music, e-Radio, Radio Streaming</td><td><input name="vote" type="radio" value="eradio" /></td></tr><tr class="rowstyle9"><td>9</td><td>Gateway to the European Union</td><td><a href="http://europa.eu/">European Union Web Site</a></td><td>Europe, Union, Europa, EU, Programmes</td><td><input name="vote" type="radio" value="europe" /></td></tr><tr class="rowstyle10"><td>10</td><td>The latest News about Technology</td><td><a href="http://www.insomnia.gr/">Insomina</a></td><td>Technology, Mobile, Telephony, Telecommunications, Software, Computer</td><td><input name="vote" type="radio" value="insomnia" /></td></tr><tr class="rowstyle0"><td colspan="2"><input name="other site" type="text" value="Other Site (Description)" size="40" maxlength="50" /></td><td><input name="other url" type="text" value="Type URL" size="30" maxlength="30"/></td><td>Other Keywords</td><td><input name="vote" type="radio" value="other vote" checked="checked" /></td></tr><tr><td align="center" colspan="5"><input name="send" type="submit" value="Submit" /><input name="clear" type="reset" value="Clear All" /></td></tr></table></form></body></html> Your main problem was that you declared the page as XML on line 1 then on line 2 said it was XHTML 1.1....this was the cause of the "Unknown Parse Mode"...I cleaned up the code a bit for you as well so it would pass validation. Great !!!Thank you very much for your time.A usefull hint for me was to include 'width' for the <th> in the 'style' attribute.thnx again. Link to comment Share on other sites More sharing options...
aspnetguy Posted October 13, 2006 Share Posted October 13, 2006 your welcomeA general rule is to use CSS whenever possible. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now