Nook uses ePub, as far as I know, and ePub uses XHTML.
Kindle uses mobi, which is proprietary and without open specifications, so it could be whatever. But there are at least two versions:
"Old" mobi, before KF8/AZW3: It uses a custom HTML-like language, with a limited set of tags, a special meaning for some attributes and some new tags.
"New" mobi, KF8/AZW3: It's basically a repackaged ePub, from what I've heard, so I guess it's XHTML too.
In any case, you don't write the mobi directly, but convert it from something else. Typically, you'll create an ePub first (so: XHTML) and convert with kindlegen or calibre. But it's possible to write the pseudo-HTML code in the old mobi format and convert with something like MobiPerl too.
|