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

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,864 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.

Oldest comments (0)

Update Your DEV Experience Level:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›