h2::before {
    content: "😃 ";
    font-size: 0.8em;
    vertical-align: 0.1em;
}
h2::after {
    content: " 😃";
    font-size: 0.8em;
    vertical-align: 0.1em;
}
p::before {
    content: "« ";
}
p::after {
    content: " »"
}
li::marker {
    content: "♥ ";
    font-size: 0.7em;
}
<h2>contentプロパティの使用例</h2>
<p>対応するCSS疑似要素セレクタによって生成される疑似要素のコンテンツを指定するプロパティです。</p>
<ul>
    <li>::before</li>
    <li>::after</li>
    <li>::marker</li>
</ul>
実際の適用例
selector {
    content: /* value */
}
<a href="https://example.com/">Example Domain</a>
a::after {
    content: " (" attr(href) ")";
}
実際の適用例
<button type="button">いいね!</button>
button::before {
    content: url(heart.jpg);
    margin-right: 0.5em;
}
実際の適用例
<h3>導入</h3>
<h3>本文</h3>
<h3>結論</h3>
body {
    counter-reset: heading; /* counterの名前を'heading'に指定します。
                               初期値は0です。 */
}
h3::before {
  counter-increment: heading; /* headingのカウンター値を1ずつ増加させます。 */
  content: counter(heading); /* headingのカウンター値を表示します。 */
  margin-right: 0.2em;
}
実際の適用例