JSFiddle - React, Tailwind, and code Playground

HTML

<a href="/dir/page.htm">My Page (Internal)</a>

<a href="http://www.google.com">External</a>

CSS

a { color: blue; }
a[href^=http] { color: red; }