DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Chris Briggs
Chris Briggs

Posted on

Style is servient to content

An extremely short post that highlights a key consideration regarding the use of CSS to style HTML content:

Documents that use style attributes on any of their elements must still be comprehensible and usable if those attributes were removed. (Section 3.2.6.5 The style attribute)

This is a direct quote from the HTML Spec, as a reminder that content trumps style and it's a good idea to temporarily disable stylesheets (if feasible) prior to production just to make sure this holds true.

Top comments (0)

🌚 Life is too short to browse without dark mode