::before {
    content: /* value → 生成する疑似的な子要素のコンテンツを指定:必須 */;
    /* 生成する疑似的な子要素をスタイリングするプロパティを指定:オプション */
}
p::before {
    content: "👉";
    vertical-align: 0.2em;
    margin-right: 0.3em;
}
<p>
    段落のコンテンツです。
</p>
実際の適用例
<p>
    <before>👉</before> <!-- beforeというタグは存在しません。説明のために仮想的にマークアップしたものです。 -->
    段落のコンテンツです。
</p>
button::before {
    content: "🧡";
}
<button type="button"></button>
実際の適用例
<button type="button" aria-label="いいね!"></button>
実際の適用例
h2::before {
    content: ""; /* ← ここに注目してください。 */
    display: block;
    width: 2em;
    height: 0.3em;
    background-color: #000;
    margin-bottom: 0.3em;
}
<h2>疑似要素セレクタ</h2>
input::before {
    content: "🧡";
}
img::before {
    content: "🧡";
}
hr::before {
    content: "🧡";
}
<nav>
    <ul>
        <li><a href="">製品一覧</a></li>
        <li><a href="">プライバシーポリシー</a></li>
        <li><a href="">お問い合わせ</a></li>
    </ul>
</nav>
ul {
    display: flex;
    margin: 0;
    padding: 0;
}
li {
    list-style: none;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
li:not(:first-child)::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 0.8em;
    background-color: rgba(0, 0, 0, .6);
    margin: 0 1.1em;
    vertical-align: -0.06em;
    white-space: nowrap;
}
実際の適用例
<a href="">戻る</a>
a {
    color: inherit;
    text-decoration: none;
    padding: 0.5em 1em;
    background-color: #fff;
    border: 1px solid #777;
    border-radius: 0.5em;
    display: inline-flex;
    align-items: center;
}
a::before {
    content: "";
    display: inline-flex;
    width: 0.5em;
    height: 0.5em;
    border-left: 1px solid black;
    border-bottom: 1px solid black;
    transform: rotateZ(45deg);
    margin-right: 0.2em;
}
実際の適用例