Complete novice with XHTML here. This is my first post because I've been browsing the forums for a few days and have found answers to all my questions except the following two. So a big thank you to to everyone who has contributed their knowledge to these forums.
I'm trying to validate my first blog, and have got the errors down from 26 to 4 (which is actually 2 since one of them is repeated 3 times).
My blog is at http://www.wishfulthinking.co.uk/blog and I've made a few modifications to the Letterhead theme.
1. '"div" omitted, but OMITTAG NO was specified.'
The relevant code from my header.php is:
<div id="page"><div id="header">
<object><img src="title.png" alt="Wishful Thinking - creativity, coaching, business" /></object>
The error message indicates that the unclosed tag is <div id="page">. But if I insert another </div> before </body>, then this messes up the whole theme - all the content below the header moves right up against the left margin.
I've found it validates if I self-close the tag, i.e. <div id="page" />. Is this OK or is there likely to be a connection with the next problem?
2. I'm getting 'document type does not allow element "div" here' in relation to the following tags at the start of these documents:
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
and footer.php begins:
Thanks in advance for any help, apologies if any of this is obvious.