[title] { /* Selects all elements that have a title attribute. */
    background-color: darkblue;
    color: white;
}
<p>Let's learn <abbr title="Hypertext Markup Language">HTML</abbr> in a simple and fun way!</p>
<a href="https://www.example.com" title="Visit the official website">Example Website</a>
Rendered Output
[cite] {  /* Selects all elements that have a cite attribute. */
    background-color: yellowgreen;
}
<p>
    Tim Berners-Lee said,
    <q cite="https://example.com/example">
        The Web is a human right.
    </q>
</p>
Rendered Output