My ramblings about backend stuff

Mark external links with CSS

When creating content for website we put links to external sources. However sometimes we would like to mark these links as being external without adding new classes to <a> element or parsing full webpage with JS (or jQuery). There is simple CSS only solution to identify internal and external links in website, using attribute start matching (^=) and :not selector.

Continue reading Mark external links with CSS