</>
ValidateHTML

Unknown CSS Property

An unknown property error means the CSS property name doesn't exist in the specification. This is usually a typo (e.g., 'colr' instead of 'color'), a vendor-prefixed property used without the prefix, or a made-up property name.

Why It Matters

The browser ignores the entire declaration. Unlike invalid values, unknown properties are easier to catch because the property name itself is wrong. But they can hide behind vendor prefixes and preprocessor variables.

Code Examples

Bad CSS
div {
  colr: red;              /* typo */
  font-weigth: bold;      /* typo */
  background-colour: #fff; /* British spelling */
  text-size: 16px;         /* not a property */
}
Good CSS
div {
  color: red;
  font-weight: bold;
  background-color: #fff;
  font-size: 16px;
}

How to Fix

  • 1Double-check property names. Common typos: colr, font-weigth, backgroud, heigth, widht.
  • 2background-colour is not valid CSS. Use background-color (American spelling).
  • 3text-size doesn't exist. Use font-size for text sizing.
  • 4If using vendor prefixes (-webkit-, -moz-), also include the standard property.

Check Your CSS Now

Our CSS validator detects this error automatically and shows the exact line number.

Open CSS Validator
Recommended

Hostinger Fast & Affordable Web Hosting

Deploy clean, validated CSS on reliable hosting.

Get 80% Off Hosting →

Related CSS Errors

View all CSS errors