XML technologies / ePUB / ePub für (In)Designer / Brief introduction to HTML and CSS / XHTML
(Excerpt from “ePub für (In)Designer — Mit InDesign Schritt für Schritt zum E-Book” by Sascha Heck & Yves Apel)
A special form of HTML is XHTML. The X stands for “eXtensible”: extensible HTML. It is based on XML. XML means “eXtensible Markup Language”, an extensible markup language. XML is flexible: you can create your own elements according to a schema. XHTML has stricter rules, making files more standardized and suitable for conversion, for example with XSL (eXtensible Stylesheet Language). This also benefits mobile browsers that apply XHTML rules rigorously. Here are some rules, without claiming completeness:
Use lowercase letters only.
Every start tag needs an end tag.
Empty elements are allowed only in shorthand with a final slash preceded by a space (for example:
<br />).Attribute values must always be quoted (for example:
<ahref="http://www.epub-fuer-indesigner.de">).Do not use deprecated elements, obsolete presentation methods such as
<i>for italic or<b>for bold.
You need not memorize this now: InDesign automatically exports XHTML files. It matters only when you edit those files afterward. In this book, we generally say simply “HTML”.
Copyright © dpunkt.verlag GmbH 2012
You may print the online version for your private use.
Otherwise, this chapter from “ePub für (In)Designer” is subject to the same terms as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Wieblinger Weg 17, 69123 Heidelberg, fon 06221-14830, fax 06221-148399, hallo(at)dpunkt.de
back to top