javascriptlover
12-06-2008, 09:09 AM
"Line 40, Column 7: end tag for element "div" which is not open."
I can see what's happening in the code, I just can't see why!
I have a (red) div tag wrapping around the entire contents of everything in my html's body. The thing is, the browsers think it ends at the blue div below - way before where it should, ie just before the final </body> tag.
Any idea how I can make my container div tags - the red ones below - more clear to the browsers?
Thanks
<body>
<div id="container">
<div id="image">
<img src="dog.gif" alt="my dog" />
</div>
<h1>The happyiest dawg</h1>
<div id="introduction">
<h2> Lorem ipsum blah blah blah</h2></div>
</div>
<div id="information">
Lorem ipsum blah blah blah
</div>
</div>
</body>
I can see what's happening in the code, I just can't see why!
I have a (red) div tag wrapping around the entire contents of everything in my html's body. The thing is, the browsers think it ends at the blue div below - way before where it should, ie just before the final </body> tag.
Any idea how I can make my container div tags - the red ones below - more clear to the browsers?
Thanks
<body>
<div id="container">
<div id="image">
<img src="dog.gif" alt="my dog" />
</div>
<h1>The happyiest dawg</h1>
<div id="introduction">
<h2> Lorem ipsum blah blah blah</h2></div>
</div>
<div id="information">
Lorem ipsum blah blah blah
</div>
</div>
</body>