Is it possible to style an anchor tag to appear identical to plain text? Consider the following scenario:
<p> Here is some text and here is a
<a class='no-link' href="http://www.example.com" >link</a></p>
I have attempted the following styling:
.no-link{
pointer-events: none;
cursor: text;
text-decoration: none;
color: black;
}
Despite this styling, the 'link' text still displays the default arrow cursor when hovered over, unlike the rest of the text within the <p>
element. How can I ensure that all text has the text cursor while keeping the link unclickable?
I am looking for a solution that does not involve the use of jQuery or JavaScript.