<dl>
    <dt>1. dt1</dt>
    <dd>2. xxxxxxxxx</dd>
    <dt>3. dt2</dt>
    <dd>4. xxxxxxxxx</dd>
    <dd>5. yyyyyyyyy</dd>
    <dt>6. dt3</dt>
    <dd>7. xxxxxxxxx</dd>
    <dt>8. dt4</dt>
    <dd>9. xxxxxxxxx</dd>
</dl>
dt:first-of-type{
  color: red;
}

dt:nth-of-type(3){
  color: blue;
}

dt:last-of-type{
  color: green;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.