Printing out URLs can be a nice edition to print stylesheets. When someone prints your article or blog post, you want them to know where your links would have taken them so that they can investigate those sources further if they desire.
However, you don’t want to include every link in the print stylesheet. Your internal links that loop back to your own website aren’t necessary and will bog down the print stylesheet with a lot of unneeded text.
So how do we add only the external links to the print stylesheet? In this video, we will cover several techniques you can use in order to achieve this.
The code I use to display external links within this website’s print stylesheet is:
a:not([href^="http://coreyms"])::after {
content: " ( " attr(href) " )";
}