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)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay