Skip to main content

HTML Guide

CSS: “X”: Missing a semicolon before the property name “Y”.

CSS properties need to be separated by semicolons. Check for the missing semicolon between properties.

In the example below, a forgotten semicolon before the content property makes the CSS parser unable to understand the properties:

<style>
nice {
  z-index: auto 
  content: ""; 
  display: block; 
}
</style>

Fix it by including the forgotten semicolon like this:

<style>
nice {
  z-index: auto;
  content: ""; 
  display: block; 
}
</style>

Related W3C validator issues