I\'m looking for a way to add an HTML tag for CSS content property inside :after and :before.
:after
:before
Unlike this question which only discusses add
This is impossible. You cannot generate markup from CSS.
It should also be unnecessary - stick your background image / icon font / whatever in the generated pseudo-element you have already.