Trying to style "anchor links" differently in CSS compared to regular Links. Any suggestions on how to target Anchor Links specifically?
Are there pseudo-elements or checks available to identify if a Link is an Anchor Link?
I'm working on updating an old website and need to give these Anchor Links unique styling, possibly in different colors.
The Anchor Links were added 8 years ago without any special classes, so it's not feasible to add them now across 5,000 pages;
This question pertains specifically to Anchor Links, as they need to be styled separately from Regular Links within the content of various pages...
Despite its apparent simplicity, I couldn't find relevant information through online searches....
For instance, in terms of code example:
a {color:red;text-decoration:none;}
a::Anchor {??? Can I or Can't I}
<article>
<a name="Mark1">Anchor Link 1</a>
<a href="http://google.xyz"> Reg Link 1</a>
<a name="Mark2">Anchor Link 2</a>
<a href="http://google.xyz"> Reg Link 2</a>
<a name="Mark3">Anchor Link 3</a>
<a href="http://google.xyz"> Reg Link 3</a>
<a name="Mark4">Anchor Link 4</a>
<a href="http://google.xyz"> Reg Link 4</a>
<a name="Mark5">Anchor Link 5</a>
<a href="http://google.xyz"> Reg Link 5</a>
</article>