#chapter { /* id="chapter"属性を持つ要素を選択します。 */
    background-color: darkblue;
    color: white;
}
<p id="chapter">idの値はchapterです。</p>
<p>これは単なる段落要素です。</p>
実際の適用例
#id_value {
    /* ... */
}
[id="id_value"] {
    /* ... */
}
#chapter { /* 詳細度: 0, 1, 0, 0 */
    background-color: orange; /* このスタイルが適用されます。 */
}
[id="chapter"] { /* 詳細度: 0, 0, 1, 0 */
    background-color: green;
}
<p id="chapter">idの値はchapterです。</p>
実際の適用例