<!doctype html>
<html lang="ko">
  <head>
    <meta charset="utf-8">
    <title>CSS</title>
    <body>
    <h1 class="first">hi</h1>
    <h1 class="second">hi</h1>
 
    </body>
</html>
.first::first-line{
  color:red;
}
.second::first-letter{
  color:red;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.