sorry the question doesnt make sense but i shall explain.
I have two hyperlinks
<a href="" class="menu-link">home</a>
<a href="" class="menu-link">blog</a>
i want to apply this style
<style>
.menu-link{color:#000;}
</style>
but only apply to <a href="" class="menu-link">home</a> how can this be done other than actually changing the class like below
<a href="" class="menu-link-1">home</a>
<a href="" class="menu-link-2">blog</a>
If you’re unable to modify the markup to add an additional class, you can select an element it by its
hrefattribute, assuming it has one:Here’s a live example.