Separation of Content and Presentation¶
Organize document content and structure separately from rules that determine their presentation.
Core Idea¶
A document system can represent what a document says and how its parts are organized separately from rules that determine its visual or other presentation. The same structured source can then be rendered with different styles without rewriting each item of content. The separation is a design choice with degrees, not a guarantee: a source may omit a meaningful relationship, and a style or rendering may still make content difficult to perceive or use.[1][2]
How would you explain it like I'm…
Words Here, Looks There
What It Says vs. How It Looks
Separating Content From Presentation
Structural Signature¶
- Content and structure: text and meaningful relationships, such as a heading and the section it introduces.
- Presentation rules: choices such as type, spacing, color and layout, applied to selected parts of that structure.
- A rendering process: interprets the source and applicable rules for a particular medium or user setting.
- A change boundary: presentation can often change independently of the text, though the mechanisms and permissible changes depend on the document system.
Keeping a relationship in the source matters when another rendering or assistive technology must recover it. A visually large line is not automatically a heading in the document structure; conversely, a structured heading is not automatically usable in every presentation.
Web Styles and Image Replacement¶
HTML supplies document structure, while CSS supplies rules for presentation and can select different rules for different media. A site can, for example, revise typography across many pages by changing shared styles. CSS does not itself ensure that the source uses meaningful elements or that a particular visual treatment is accessible.[1]
An early CSS image-replacement technique retained heading text in the markup while displaying a styled image. The original demonstration hid the text with display: none; its author later warned that this made the hidden text inaccessible to certain screen readers. The presence of text in markup alone therefore does not establish that an implementation exposes it to its intended readers.[3]
The W3C documents a different technique that places text offscreen and supplies a control for switching to a stylesheet without images, together with specific checks and conditions. This is a technique for particular accessibility criteria, not a guarantee for every implementation or user. Where a CSS background image conveys information, an equivalent text alternative must be considered; a purely decorative background does not convey such information.[4][5]
Structured Typesetting¶
LaTeX provides another document-production setting: authors can use structural commands while a document class supplies typesetting conventions. A class also determines which commands and environments are available, however, so it is not merely an independent visual skin. Changing classes can require changes in the source and may alter more than appearance.[2]
Boundaries¶
Separating source and styling can make revisions and alternative presentations easier, but the benefit depends on the actual source, style rules and rendering environment. It does not make every styling decision interchangeable, repair missing semantics, or by itself establish accessibility. Conversely, some content decisions and presentation decisions remain coupled: a diagram, for example, may need a textual explanation whose usefulness depends on the information the diagram conveys.
Neighborhood in Abstraction Space¶
Separation of Content and Presentation sits in a sparse region of the domain-specific corpus (99th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.
Family — Unclustered & Miscellaneous (3155 abstractions)
Nearest neighbors
- Narrative Frame Transition — 0.75
- Embedded Structured-Data Markup — 0.75
- Gestalt Qualities — 0.73
- Architectural ensemble — 0.73
- Implicit Animation — 0.73
Computed from structural-signature embeddings · 2026-11-14
References¶
[1] World Wide Web Consortium, Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification, especially its introduction and media types. registry ↩a ↩b
[2] Frank Mittelbach and Ulrike Fischer, The LaTeX Companion, third edition, sample chapters, Addison-Wesley, 2023, chapter 2. registry ↩a ↩b
[3] Douglas Bowman, “Using Background-Image to Replace Text”, 7 March 2003, including the subsequent accessibility warning. registry ↩
[4] World Wide Web Consortium, “C30: Using CSS to Replace Text with Images of Text and Providing User Interface Controls to Switch”, WCAG techniques, description and tests. registry ↩
[5] World Wide Web Consortium, “F3: Failure of Success Criterion 1.1.1 due to conveying information exclusively using CSS background images”, WCAG techniques. registry ↩