Comments in CSS

Avatar of Chris Coyier
Chris Coyier on (Updated on )


body {
  font-size: 62.5%  /* 1em = 10px */

The stuff inside the /* */ marks are CSS comments. This allows you to enter notes into CSS that will not be interpreted. In this case, this comment lets someone reading the CSS file know that that particular line of CSS was intended to allow for using ems to set font size later in the CSS in a more intuitive base 10 way.