SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist jor133d's Avatar
    Join Date
    Jul 2003
    Posts
    428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Validating Problem

    I was wondering how I can fix these errors..

    Line 43 column 19: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.

    <div id="wrapper" >

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,426
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Gonna need to see more code.

  3. #3
    SitePoint Evangelist jor133d's Avatar
    Join Date
    Jul 2003
    Posts
    428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is the entire code....




    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html>
    <head>
    <title><SITE_TITLE></title>
    <!-- Link for ATOM feed autodiscovery -->
    <ATOM_AUTODETECT_LINK>
    <!-- Link for RSS feed autodiscovery -->
    <RSS_AUTODETECT_LINK>
    <!-- Meta-Information -->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="imagetoolbar" content="false" />
    <meta http-equiv="content-type" name="keywords" content="PhotoBlog,<SITE_TITLE>,<IMAGE_TITLE>,Pixelpost" />
    <meta http-equiv="content-type" name="description" content="<SITE_TITLE>-PhotoBlog: <IMAGE_TITLE>, <IMAGE_NOTES_CLEAN>" />
    <base href="<SITE_URL>" />
    <!-- StyleSheet -->
    <link rel="stylesheet" type="text/css" href="templates/dwd/dwd.css" title="light" />
    <style type="text/css">
    <!--
    a:link {
    	color: #FFFFFF;
    }
    a:visited {
    	color: #FFFFFF;
    }
    -->
    </style></head>
    
    <body>
    <div class="vertop" id="header"><a href="http://www.destreedesign.com"><img src="http://www.destreedesign.com/blog/templates/dwd/toplogo.gif" alt="dwd media studios" width="165" height="35" border="0" /></a><br />
    <SITE_PHOTONUMBER> photos posted :: <SITE_VISITORNUMBER> visitors<br />
    </div>
    <table width="100%" border="0">
      <tr>
        <td><div align="center"><img src="http://www.destreedesign.com/blog/templates/dwd/logo.gif" alt="a college kid with a camera" width="561" height="148" /></div></td>
        <td>&nbsp;</td>
      </tr>
    </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tabletotal">
      <tr class="tablebgtop">
        <td bgcolor="#1F0000"><p>
    	<div id="wrapper" >
    <table width="300" border="0" align="center">
      <tr>
        <td><div id="image-info-nav">
    <IMAGE_PREVIOUS_LINK> &nbsp; &nbsp; 
    <a href="index.php">{ index }</a>&nbsp;&nbsp;
    <IMAGE_NEXT_LINK>
    </div></td>
      </tr>
      <tr>
        <td><div align="center"><a href="index.php?showimage=<IMAGE_PREVIOUS_ID>"><img id="image" src="./images/<IMAGE_NAME>" alt="<IMAGE_TITLE>" title="<IMAGE_PREVIOUS_TITLE>" width="<IMAGE_WIDTH>" height="<IMAGE_HEIGHT>" /></a></div></td>
      </tr>
      <tr>
        <td><div id= "title-of-pic">
    <IMAGE_TITLE>
    </div></td>
      </tr>
    </table>
    </div>
    </p>
        </td>
      </tr>
      <tr class="tablebg">
        <td> <p align="center">&nbsp;</p>
          <p align="center">&nbsp;</p>
          <table width="750" border="0" align="center">
            <tr>
              <td><p><img src="http://www.destreedesign.com/blog/templates/dwd/info.gif" alt="photo info" width="763" height="57" /></p>
              <p><div id="image-info">
    <span class='headline'>
    <IMAGE_NOTES>
    <p align="left">&nbsp;</p>
        </div></p></td>
            </tr>
          </table>
          <p>&nbsp;</p>
          <table width="750" border="0" align="center">
            <tr>
              <td><p><img src="http://www.destreedesign.com/blog/templates/dwd/comments.gif" alt="comments" width="763" height="57" /></p>
              <p><div id="comments">
    <IMAGE_COMMENTS>
        </div></p></td>
            </tr>
          </table>
     
        <p>&nbsp;</p>
        <table width="750" border="0" align="center">
            <tr>
              <td><p><img src="http://www.destreedesign.com/blog/templates/dwd/add.gif" alt="add comments" width="763" height="57" />
                <div id="addcomment"> Add a Comment <br />
                    </p>
                <form method='post' action='index.php?x=save_comment' name='commentform' accept-charset='UTF-8'>
    <div align="left"><br />
      Message:<br />
        <textarea name='message' rows='2' cols='40'></textarea> <br />
        <br />
    </div>
    <div align="left">
      <input type='text' name='name' class='input' value='<VINFO_NAME>' id="name"/>
      &nbsp;&nbsp;&nbsp; </div>
    <label for="name">
    <div align="left">Name </div>
    <div align="left">
      <input type='text' name='url' class='input' value='<VINFO_URL>' id="url"/>
      &nbsp;&nbsp;&nbsp; </div>
    <label for="url">
    <div align="left">Website URL, if any </div>
    <div align="left">
      <input class='input' type='text' name='email' value='<VINFO_EMAIL>' id="email"/>
      &nbsp;&nbsp;&nbsp; </div>
    <label for="email">
    <div align="left">Email (not visible to others) <br />
    </div>
    <div align="left"> <br />
    <input type='hidden' name='parent_name' value='<IMAGE_NAME>' />
      <input type='checkbox' value='set' name='vcookie' id="saveinfo" />
    </div><label for="saveinfo">
    <div align="left">Save User Info</div>
    </label>
    <div align="left"><br />
        <br />
      &nbsp;&nbsp;
      <input type='submit' value='Add' />
      <input type='hidden' name='parent_id' value='<IMAGE_ID>' />
      <input type='hidden' name='parent_name' value='<IMAGE_NAME>' />
    </div>
    </form >
    
    </td>
            </tr>
          </table>
        <p>&nbsp;</p></td>
      </tr>
    </table>
    <table width="100%" border="0" class="tablebottom">
      <tr>
        <td><p align="center" class="textbttom"><a href="http://validator.w3.org/check/referer">Valid XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">Valid CSS</a> |
    <!-- Powered by PixelPost -->
    <a href="http://www.pixelpost.org" target="_new">Pixelpost</a></p>    </td>
      </tr></table>
    </body>
    </html>

  4. #4
    SitePoint Evangelist jor133d's Avatar
    Join Date
    Jul 2003
    Posts
    428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  5. #5
    SitePoint Addict Green Beast's Avatar
    Join Date
    Feb 2005
    Location
    Nottingham NH
    Posts
    261
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think this is the problem:

    <td bgcolor="#1F0000"><p>
    <div id="wrapper" >

    You can't have a (block-level) div in a paragraph.

    Mike


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
  •