Fix "Content missing without stylesheets" in HTML
Why it's a problem
Content that only exists in CSS (text injected with content, informative background images) vanishes when styles are turned off or replaced: by a screen reader, a reading mode, a user stylesheet. Our check disables the stylesheets and flags the page when almost no text remains visible.
How to fix it — HTML
Put the information in the HTML: real text, <img> with alt for informative images. Keep CSS for presentation. Then check the page without styles: content must be present and read in a logical order.
<style>
.promo::before { content: "Livraison offerte dès 50 €"; }
</style>
<p class="promo"></p><p class="promo">Livraison offerte dès 50 €</p>RGAA criterion 10.3 — Présentation de l’information
Dans chaque page web, l’information reste-t-elle compréhensible lorsque les feuilles de styles sont désactivées ?
How to check: official tests (in French)
Test 10.3.1
Dans chaque page web, l’information reste-t-elle présente lorsque les feuilles de styles sont désactivées ?
Full page for criterion 10.3 · Official text: Référentiel général d'amélioration de l'accessibilité (RGAA) 4.1, DINUM, Licence Ouverte 2.0.
Check your site in 30 seconds
Conformly detects this kind of issue across all your pages, continuously, and alerts you on every regression.
Free scan