codegurukool.com · Free coding tutorials & online compiler

Home › CSS Tutorial › CSS errors

CSS errors

Mistakes are ignored, not announced.

CSS never shows an error message. A typo just means the declaration is skipped, so check spelling, colons, semicolons and braces.

Example code

<style>
p{colour:red;}   /* wrong property: ignored */
h1{color:blue}    /* correct */
</style>
<h1>Works</h1><p>Not red</p>

Run this code in the online editor

← CSS commentsCSS borders →