Crispín Klander Crispín Klander - 3 months ago 12
HTML Question

Removing visited style in href attribute

I would like to know if is it possible to change the visited style inline , not in the CSS, something similar to

<a style="text-decoration:none;" >

Answer

No this is not possible, the only alternative would be using <style> tag:

<html>

<head>
  <style>
    a:hover {
      text-decoration: none;
    }
  </style>
</head>

<body>
  <a href="#">Link</a>
  <!-- Or you could use Javascript-->
  <a href="#" onmouseover = "this.style.textDecoration = 'none'">Link 2</a>
</body>

</html>