Les pseudo-éléments ::before et ::after

pseudo-element ::before

Code CSS

h1::before { content:"Titre:"; color:red; }
a::after  { content:attr(title); }

Code html

<h1>pseudo-element ::before</h1>
<a href="#" title="utilisation de ::after avec attr" target="_blank"></a>