<?xml version="1.0" encoding="utf-8"?>

CSS property-value order

CSS property-value order Bad Practice
CSS property-value order Best Practice

Sometimes the order of things matters, and sometimes it doesn't. When it comes to the CSS declaration syntax, the property-value order is crucial. The first part of the declaration has to be the property, and the second — its value. Typing them in the wrong order will result in an error — browsers simply won't understand the code. Also, remember that there must be a colon (:) between the property and its value.

Improve your UX & Product skills with interactive courses that actually work