<ul>
   <li>This is first child</li>
   <li>This is second child</li>
   <li>This is third child</li>
</ul>
body{
  background: #1f1f1f;
  width: 80%;
  border: 1px dashed #ffffff;
  margin: auto;
  padding: 50px;
  color: #ffffff;
}

/* first-child selector */
ul li:first-child {
  color: red;
  font-weight: bold;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.