How to write ::before / ::after inside anchor tag
<p>How to write ::before inside anchor tag like this.</p>

<p><a href="https://i.stack.imgur.com/tojNE.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tojNE.jpg" alt="enter image description here"></a></p>