XML technologies / ePUB / Open Publication Structure / Semantic inline elements
(Excerpt from “E-Books mit ePUB ─ Von Word zum E-Book mit XML” by Dr. Victor Wang)
The following pages list important semantic elements for text structure. Semantic means following content meaning where possible rather than layout. This separates structure and presentation and improves accessibility. Rich semantics makes data easier to interpret, for example by text-to-speech software.
Distinguish block elements, usually containing paragraph-oriented content, from inline elements within paragraphs. Neither XHTML nor DTBook always separates them sharply. An element such as <code> may occur inline, as here, or as a block, as in the code example under Examples, listings and keyboard input. Stylesheets also affect display: an inline element can use the CSS property display to display as a block.
So-called generic elements initially have no fixed meaning. DTBook and XHTML use <div> for blocks and <span> for inline markup. The attribute class, or rarely id, assigns semantics that stylesheets use for display. Headings illustrated this for XHTML’s missing chapter frame; see the code example “Suggested XHTML structure using div”.
Next we examine elements with predefined semantics.
Copyright © mitp 2011
You may print the online version for your private use.
Otherwise, this chapter from “E-Books mit ePUB” 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.
Verlagsgruppe Hüthig Jehle Rehm GmbH, Im Weiher 10, 69121 Heidelberg, kundenbetreuung(at)hjr-verlag.de
back to top