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

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 967,611 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.