View Single Post
Old 05-18-2023, 06:11 PM   #5
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by mt.msla View Post
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

Last edited by Tex2002ans; 05-18-2023 at 06:26 PM.
Tex2002ans is offline   Reply With Quote