W3C Validation - how important is it?
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #8
RE: W3C Validation - how important is it?
You have a number of unclosed tags in that code sample.  I think you may need to take a bit of a step back and try to visualise the output you want.
Indentation may be a bit of a help - I've indented parts of your code - basically, as a guide, indent when you open a tag, and unindent when you close - so <table ...> will vertically align with </table>.  Can you see the issue now?

HTML Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<html>
<head>
<title>{$mybb->settings['bbname']} - {$foruminfo['name']} </title>
{$headerinclude}
<script type="text/javascript">
<!--
	lang.no_new_posts = "{$lang->no_new_posts}";
	lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
{$moderatedby}
{$rules}
{$subforums}
<table width="100%" cellspacing="0" cellpadding="{$theme['tablespace']}" border="0" align="center">
  <tr>
    <td valign="top" width="18%">
      <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;">
        <tr><td class="thead"><strong>Books</strong></td></tr>
        <tr><td class="trow1"><img src="http://www.leefish.nl/SiteImages/bookmarksite.jpg" alt="books" /></td></tr>
      </table>
      <td valign="top">
        {$threadslist}
        <table width="100%" cellspacing="0" cellpadding="{$theme['tablespace']}" border="0">
          <tr>
            <td align="left">{$usersbrowsing}</td>
            <td align="right">{$newthread}</td>
          </tr>
        </table>
        {$permission_box}
        {$footer}
</body>
</html>


My Blog
(This post was last modified: 06-12-2010 11:09 PM by ZiNgA BuRgA.)
06-12-2010 11:07 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: W3C Validation - how important is it? - ZiNgA BuRgA - 06-12-2010 11:07 PM

 Standard Tools
Forum Jump: