View Single Post
Old 05-24-2011, 05:05 PM   #1
book24
Junior Member
book24 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2011
Device: iPad
Help with EPUb validation and closing tags

I'm creating a fixed layout illustrated epub book and it won't validate because it states:

1.ERROR: EPUB Files 3.epub/OEBPS/page02.xhtml(58): The element type "body" must be terminated by the matching end-tag "</body>".

2.ERROR: EPUB Files 3.epub/OEBPS/page02.xhtml: The element type "body" must be terminated by the matching end-tag "</body>".

3.ERROR: EPUB Files 3.epub/OEBPS/page03.xhtml(32): The element type "body" must be terminated by the matching end-tag "</body>".

4.ERROR: EPUB Files 3.epub/OEBPS/page03.xhtml: The element type "body" must be terminated by the matching end-tag "</body>".

5. Check finished with warnings or errors!

However, all of my body tags are closed. I don't get it. I'm a n00b when it comes to xhtml so I may be doing something wrong but it doesn't appear so.

Here is my code for page03.xhtml:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=1248, height=1610">
</meta>
<meta content="text/html; charset=UTF-8">
</meta>
<title>Backyard Wildlife Chipmunks</title>
<link href="template.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="page03">
<div class="image"> <img src="images/Chipmunks_ebook3_fmt.jpeg" alt="Chipmunks_ebook3.jpg"/> </div>
<div class="Page3text1"> <span class="white">What Are Chipmunks?</span> </div>
<div class="Page3text1-2"> <span class="white">4</span> </div>
<div class="Page3text2"> <span class="white">What Chipmunks Can Do</span> </div>
<div class="Page3text2-2"> <span class="white">8</span> </div>
<div class="Page3text3"> <span class="white">What Chipmunks Eat</span> </div>
<div class="Page3text3-2"> <span class="white">14</span> </div>
<div class="Page3text4"> <span class="white">Storing Food</span> </div>
<div class="Page3text4-2"> <span class="white">16</span> </div>
<div class="Page3text5"> <span class="white">Winter and Spring</span> </div>
<div class="Page3text5-2"> <span class="white">18</span> </div>
<div class="Page3text6"> <span class="white">Glossary</span> </div>
<div class="Page3text6-2"> <span class="white">22</span> </div>
<div class="Page3text7"> <span class="white">To Learn More</span> </div>
<div class="Page3text7-2"> <span class="white">23</span> </div>
<div class="Page3text8"> <span class="white">Index</span> </div>
<div class="Page3text8-2"> <span class="white">24</span> </div>
</div>
</div>
</body>
</html>

The validator kept on making me add extra </div> tags as well. I don't get it. Any help would be appreciated.

I exported out of ID 4, but have pretty much done everything within Dreamweaver as far as coding.
book24 is offline   Reply With Quote