HTML is what outputs the content to the page.
CSS is what adds style to that content.
CSS cannot add HTML. So we need some other code, either:
PHP which is a server side language that could be used to filter the headings HTML and insert the necessary links.
Glad to be of helo.