Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: This page is not Valid XHTML 1.0 Transitional!

  1. #1
    Join Date
    Nov 2007
    Posts
    39
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default This page is not Valid XHTML 1.0 Transitional!

    I'm getting 614 errors on my page. Can someone have a look at my tables and tell me what I'm doing wrong there? I think thats the main problem. I am using direct links, css, floats and a form. I hope to use ajax on this page in the future too, so users organize the page to their personal preference.

    Failed validation, 614 Errors

    Heres the page link
    http://www.plentyoftorrents.com//rat...arch/index.htm

    The table works with a javascript so I can rename things on the html page heres the start, first table and end, of the table.
    Code:
    <!-- table begins -->
    <table cellspacing="1" cellpadding="2" class="" id="myTable" width="480">
    
        <thead>
    
            <tr>
                <th class="c1">&nbsp;Site</th>
                <th class="c2">&nbsp;Language</th>
                <th class="c3">&nbsp;Rating</th>
    						<th class="c4">&nbsp;Status</th>
    						<th class="c5">&nbsp;Category</th>
    
            </tr>
    
        </thead>
    
        <tbody>
    
            <tr class="r1">
                <td class="c1"><a href="http://Bitenova.nl">&nbsp;Bitenova.nl</a></th>
                <td class="c2">&nbsp;EN</th>
                <td class="c3">&nbsp;&nbsp;&nbsp;<span class="hideFromScreen">10</span><img src="tableimg/sr10.png"alt="10"/></th>
    						<td class="c4">&nbsp;Public</th>
    
    						<td class="c5"><a href="http://www.plentyoftorrents.com/general.php#general">&nbsp;General</a></th>
    
            </tr>
    </tr>
        </tbody>
        <tfoot>
            <tr>
            <th class="c1">&nbsp;Site</th>
                <th class="c2">&nbsp;Language</th>
                <th class="c3">&nbsp;Rating</th>
    
    						<th class="c4">&nbsp;Status</th>
    
    						<th class="c5">&nbsp;Category</th>
            </tr>
        </tfoot>
    </table>
    <script type="text/javascript">
    var t = new SortableTable(document.getElementById('myTable'), 100);
    
    </script>
    <!-- table ends-->
    thanks for any help.

  2. #2
    Join Date
    Dec 2007
    Location
    Ankara, Turkey
    Posts
    160
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Default

    I think
    HTML Code:
    <form name="search"  action="results_new.php" method="post" />
    ruins everything.

    It closes the form tag immediately at that line. So after the real close tag of the form the festival begins

    Also some notes:
    * CSS comment start and end marks are /* and */ respectively. Not <!-- and -->.
    * If you use Javascript or CSS with an XHTML page you should take them in <[CDATA[ and ]]> marks to prevent the XML parser from try to parse them.

  3. #3
    Join Date
    Nov 2007
    Posts
    39
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by BYK View Post
    I think
    HTML Code:
    <form name="search"  action="results_new.php" method="post" />
    ruins everything.

    It closes the form tag immediately at that line. So after the real close tag of the form the festival begins

    Also some notes:
    * CSS comment start and end marks are /* and */ respectively. Not <!-- and -->.
    * If you use Javascript or CSS with an XHTML page you should take them in <[CDATA[ and ]]> marks to prevent the XML parser from try to parse them.
    lol festival. I just tried taking the slash out of it and then out of others in the form and it doesnt seem to help.

  4. #4
    Join Date
    Dec 2007
    Location
    Ankara, Turkey
    Posts
    160
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Default

    Ah, oh, not the inputs slashes, only the form tag's

    And also the close tag for td is not th, it is td again but in your code nearly all the td tags are closed with th tags

  5. #5
    Join Date
    Nov 2007
    Posts
    39
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    How do you mean the form tags?

  6. #6
    Join Date
    Nov 2007
    Posts
    39
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Nevermind thanks. I fixed that input problem. Now its just not recognizing the <tfoot> tag. and it doesnt recognize <style type="text/css">.

  7. #7
    Join Date
    Dec 2007
    Location
    Ankara, Turkey
    Posts
    160
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Default

    The page still looks the same(the link you have given).

    I meant that you should have a structure like this

    HTML Code:
    <form action="somewhere.php" method="POST">
    <input type="text" name="someField" />
    <input type="submit" value="Send" />
    </form>
    It will definetly recognize the tfoot and style tags. If it does not, it means that you have some other error(s) BEFORE them.

    Check very carefully and again do not forget to replace the </th>s with </td>s

  8. #8
    Join Date
    Nov 2007
    Posts
    39
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I changed it to:
    Code:
    <!DOCTYPE HTML PUBLIC
    "-//W3C//DTD HTML 4.01 Frameset//EN"
    "http://www.w3.org/TR/html4/frameset.dtd">
    Which only shows like 5 or 6 errors now, alot more forgiving. But I'm gonna leave the errors for later and start making the other pages the same.

    Thanks again.

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You should not use a frameset DOCTYPE if the page isn't a frameset, which it appears that it is not. There is virtually no reason to use XHTML either. This is the preferred DOCTYPE for all non-frameset web pages:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    Or, if you need a little more leeway, you may use:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    When using either of those, just use a plain opening <html> tag after them.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  10. #10
    Join Date
    Nov 2007
    Posts
    39
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Do those 2 support tables, <br /> and /> ? Ive got it working in all browsers now.
    The first page I was working on.
    http://www.plentyoftorrents.com/
    Then I started doing the same thing to this page.
    http://www.plentyoftorrents.com/web/
    and I'm up to here now.
    http://www.plentyoftorrents.com/tut.htm

    5 more pages to fix and I'm done.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •