Forum Moderators: open
If you do not have full control of your code, then dump
the monstrosity that does and regain control of your life.
Pseudo classes such as ":hover" cannot be used inline.
If you do not have full control of your code, then dump the monstrosity
<!DOCTYPE html>
<html>
<body>
<object>
<svg width="400" height="110">
<style>
rect{fill:red;}
rect:hover{fill:blue;}
</style>
<rect width="300" height="100" style="stroke-width:3;stroke:rgb(0,0,0)" />
Sorry, your browser does not support inline SVG.
</svg>
</object>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<style>
.rectangle:hover{fill:blue;}
</style>
</head>
<body>
<img src="svg_rectangle.svg">
</body>
</html>
<svg width="400" height="110">
<rect class="rectangle" width="300" height="100" style="fill:red;stroke-width:3;stroke:rgb(0,0,0)" />
Sorry, your browser does not support inline SVG.
</svg>
<a href='index.html'
onmouseover='this.style.textDecoration="none"'
onmouseout='this.style.textDecoration="underline"'>
Click Me
</a>