🌐
Wikipedia
en.wikipedia.org › wiki › Separation_of_content_and_presentation
Separation of content and presentation - Wikipedia
29 January 2026 - Separation of content and presentation (or separation of content and style) is the separation of concerns design principle as applied to the authoring and presentation of content. Under this principle, visual and design aspects (presentation and style) are separated from the core material and ...
Top answer
1 of 4
12

When defining what is content and presentation, see your HTML document as a data container. Then ask yourself the following on each element and attribute:

  • Does the attribute/element represent a meaningful entity in my data?
    For example, are the words between <b> tag are in bold simply for display purposes or did I want to add emphasis on that data?

  • Am I using the proper attribute/element to property represent the type of data I want to represent?
    Since I want to add emphasis on that particular section, I should use <em> (it doesn't mean italic, it means emphasis and can be made bold) or <strong> depending of the level of emphasis wanted.

  • Am I using the attribute/element only for display purposes? If yes, can the element be removed and the parent element styled using CSS?
    Sometimes an presentational tag can simply be replaced by CSS rules on the parent element. In which case, the presentational tag needs to be removed.

After asking yourself these three simple questions, you are usually able to make a pretty informed decision. An example:

Original Code: <label for="name"><b>Name:</b></label>

Checking the <b> tag...

Does the attribute/element represent a meaningful entity in my data?
No, the tag doesn't represent a data node. It is there purely for presentation.

Am I using the proper attribute/element to property represent the type of data I want to represent?
<b> is used for presentation of bold elements.

Am I using the attribute/element only for display purposes? If yes, can the element be removed and the parent element styled using CSS?
Since <b> is presentational and I am using it for presentation, yes. And since the <b> element affects the whole of <label>, it can be removed and style be applied to the <label>.

Semantic HTML's goal is not to simplify design and redesign or to avoid inline styling, but to help a parser understand what that particular tag represent in your document. That way, applications can be created (ie.: search engine) to intelligently decide what your content signify and to classify it accordingly.

Therefore, it makes sense to use the CSS property content: to add quotes around text located in a <q> tag (it has no value to the data contained in your document other that presentation), but no sense to the use the same CSS property to add a symbol in your footer as it does have a value in your data.

Same applies to attributes. Using the width and height attribute on an <img> tag representing an icon at size 16x16 makes semantic sense as it is important to understand the meaning of the <img> tag (an icon can have different representations depending on the size it is displayed at). Using the same attributes on an <img> tag representing a thumbnail of an larger image does not.

Sometimes you will need to add non-semantic elements to be able to achieve your wanted presentation, but usually those are avoidable.

There are no wrong elements. There are wrong uses of particular elements. <b> should not be used when adding emphasis. <small> should be used for legal sub-text, not to make text smaller (see HTML5 - Section 4.6.4 for why), etc... All elements have a particular usage scenario and they all represent data (minus presentational elements, but they do have a use in some cases). No elements should be set aside.

Attributes are a different thing. Most the attributes are presentational in nature. Attributes such as <img border> and <body fgcolor> rarely have signification in the data you are representing therefore you should not use them (except in those rare cases).


Search Engines are a good examples as to why semantic documents are so important. Microformats are a predefined set of elements and classes which you can use to represent data which search engines will understand in a certain way. The product price information in Google Searches is an example of semantics at work.

By using the predefined rules in set standards to store information in your document allows third-party programs to understand what seems to be a wall of text without using heuristics algorithms which may be prone to failures. It also helps screen readers and other accessibility applications to more easily understand the context in which the information is presented. It also greatly helps the maintainability of your markup as everything is tied to a set definition.

2 of 4
5

The best example is probably the CSS Zen Garden.

The goal of this site is to showcase what is possible with CSS-based design only, with a strict separation of content from the design. Style sheets contributed by various graphic designers are used to change the visual presentation of a single HTML file, producing hundreds of different designs. The HTML markup itself never changes between the different designs.

On each design page, you'd have a link to view the CSS file of that design.

🌐
W3C
w3.org › TR › WCAG20-TECHS › G140.html
G140: Separating information and structure from presentation to enable different presentations | Techniques for WCAG 2.0
The Applicability section explains ... ... The objective of this technique is to facilitate the interaction of assistive technology with content by logically separating the content's structural encoding from the presentational encoding....
🌐
Story Needle
storyneedle.com › home › separating content and presentation: moving past fud
Separating content and presentation: Moving past FUD - Story Needle
25 September 2024 - FUD sets in and disrupts progress. Separation matters now more than ever. Discussions about separating content from presentation have a long history. Why revisit this topic now? Past discussions, responding to changes happening in the early 2000s, don’t account for the current changes reshaping today’s digital ecosystems (e.g., the development of design systems, structured content, and the shift to composable and headless architectures.)
🌐
Eric Normand
ericnormand.me › article › separation-of-presentation-and-content
Separation of Presentation and Content
18 April 2014 - So they invest a little more time writing each page so that the HTML markup does not refer to styles but to the semantics of the content (referred to as semantic HTML). Then they hire a designer to write CSS to make their existing content look new. The HTML is permanent and reusable, and the CSS is temporary and not-reusable. The separation is only one way: the HTML doesn't know the CSS, but the CSS does know the HTML.
🌐
Universalusability
universalusability.com › access_by_design › document_structure › separate.html
Document Structure: Separate content and presentation
Most designers prefer to have a hand in the visual design of their pages, however, and CSS provides the means to control page display while maintaining the separation of content and presentation. With CSS, we can control the interpretation of the tags we use to create a structured document.
🌐
A List Apart
alistapart.com › article › separationdilemma
Separation: The Web Designer’s Dilemma
14 May 2004 - Structure cannot be separate from presentation — nor should it be. ... Although presentation still depends on structure, some of which is embedded into the content as noted above, presentation can and should be separated from content.
🌐
Reddit
reddit.com › r › webdev › comments › zw29vy › separation_of_content_and_presentation
Separation of Content and Presentation : r/webdev
27 December 2022 - Looking at the history of the web page, this design principle -to separate presentation and style from structure and content- is seen in the development of HTML, CSS and JS.
Find elsewhere
🌐
W(e)blinks
wblinks.com › notes › separation-of-content-and-presentation
Separation of Content and Presentation with HTML and CSS - W(e)blinks
7 August 2008 - They think that just by adding ... in this category myself in the past. The whole concept of HTML and CSS is to separate the content of a site, from the presentation....
🌐
Grokipedia
grokipedia.com › separation of content and presentation
Separation of content and presentation — Grokipedia
14 January 2026 - The separation of content and presentation is a foundational design principle in computing and document processing, wherein the core information—such as text, images, and semantic structures—is distinctly separated from its visual rendering, ...
🌐
Cpp
hwang.cisdept.cpp.edu › webdev › Text › Structure-Presentation.htm
Structure vs. Presentation
For example, the <img> tag, as a structural element, is used to create graphical content. In practice, the makeup of a webpage can simply be viewed as a combination of three elements: Structure, Presentation, and Behavior. The terms "separation of content and presentation," "separation of meaning ...
🌐
W3C
w3.org › 2001 › tag › doc › contentPresentation-26.html
Separation of semantic and presentational markup, to the extent possible, is architecturally sound
30 June 2003 - Introducing the concept of a continuum ... choices along this continuum. Separating the concepts content, presentation, and interaction allows more easily composable specifications....
🌐
Springer
link.springer.com › home › constructing accessible web sites › chapter
Separating Content from Presentation | SpringerLink
The purpose of this chapter is to address the issue of separating informational content from visual presentation. The first principle of design — Form follows function — is the golden rule that should be followed at all times whether it is designing a house, a coffee pot, or a web site. Many web design professionals begin the designing work by thinking in terms of how something will look rather than how it will work. The framework of any product must be thoroughly thought out and ...
🌐
Team Treehouse
teamtreehouse.com › community › separation-of-content-and-presentation
Separation of content and presentation (Example) | Treehouse Community
6 February 2020 - The framework approach appears to violate the basics we learned earlier: the separation of content and presentation. Many of the elements in this sample site define color, margins, padding and even display properties right in the html. In some cases, like the call to action button in these lessons, this leads to long strings of classes to position the element on the page.
🌐
Computerworld
computerworld.com › home › enterprise applications › separating content from presentation: easier said than done
Separating Content from Presentation: Easier Said Than Done – Computerworld
25 July 2002 - One table as the outer “shell” to hold the section number and the body · of the section. The other table to contain the body of the section, ... However, sometimes, the medium is an inextricable part of the message. The next time someone tries to sell you a line like “just separate the · content from the presentation with XML” be warned — it is not
🌐
A List Apart
alistapart.com › article › separation
Separation Anxiety: The Myth of the Separation of Style from Content – A List Apart
17 November 2000 - I’ve read several HTML references, online and off, and all seem to make some mention of the dichotomy of style and content, presentation and structure, appearance and substance. The good designer is admonished to keep them separate in order to ward off various woes: unmanageability, unusability, professional shame.