Quote:
Originally Posted by mt.msla
Just curious. Also, should I be using the .xhtml instead of .html? What would the difference or benefit be?
|
See our discussion back in:
Like KevinH said, EPUBs require XHTML.
What's the difference?
Well, HTML is very loose with their rules + XHTML is a little more strict.
So HTML would allow code like:
Code:
<p>This is a paragraph.
<p>This is another paragraph.
where XHTML says: "Hey! If you open it, you need to close it too!"
Code:
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
Or like KevinH said, one XHTML rule is "all lowercase tags", so HTML allows:
Code:
<P>This is a paragraph.</p>
<BLOCKQUOTE><p>This is a blockquote with <SpAn>a span</span>.</p></BLOCKQUOTE>
XHTML:
Code:
<p>This is a paragraph.</p>
<blockquote><p>This is a blockquote with <span>a span</span>.</p></blockquote>
There are a few more basic differences like that, (and then some extremely technical ones that most people will never need to know about).
All you need to know is that Sigil's
Mend and Prettify will clean up a lot of that junk if you accidentally put it in your documents. :P