Use Attribute Selectors with Empty Links

Display links when the <a> element has no text value but the href attribute has a link:

  1. a[href^="http"]:empty::before {
  2. content: attr(href);
  3. }

That’s pretty convenient.

Demo