It can be done in css and it is very simple. change the "a" to a "p". Your "page link" does not lead to somewhere anyway if you want to make it unclickable.
When you tell your css to do a hover action on this specific "p" tell it this:
(for this example I have given the "p" the "example" ID)
#example
{
cursor:default;
}
Now your cursor will stay the same as it does all over the page.
The answer is:
<a href="page.html" onclick="return false">page link</a>
CSS was designed to affect presentation, not behaviour.
You could use some JavaScript.
document.links[0].onclick = function(event) {
event.preventDefault();
};
That isn't too easy to do with CSS, as it's not a behavioral language (ie JavaScript), the only easy way would be to use a JavaScript OnClick Event on your anchor and to return it as false, this is probably the shortest code you could use for that:
<a href="page.html" onclick="return false">page link</a>
<a href="page.html" onclick="return false" style="cursor:default;">page link</a>
You can use this css:
.inactiveLink {
pointer-events: none;
cursor: default;
}
And then assign the class to your html code:
<a style="" href="page.html" class="inactiveLink">page link</a>
It makes the link not clickeable and the cursor style an arrow, not a hand as the links have.
or use this style in the html:
<a style="pointer-events: none; cursor: default;" href="page.html">page link</a>
but I suggest the first approach.