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)