Make an html svg object a clickable link - HTML CSS SVG

HTML CSS examples for SVG:svg element

Description

Make an html svg object a clickable link

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

a {<!--from  w ww  . j av  a  2s . c om-->
   display: inline-block; 
}
object {
   pointer-events: none; 
}


      </style> 
 </head> 
 <body> 
  <a href="http://www.google.com/" target="_blank"> 
     <object data="https://www.java2s.com/style/demo/Opera.png" type="image/svg+xml"> 
     <img src="https://www.java2s.com/style/demo/Firefox.png" style="width: 250px;"> </object> 
  </a>  
 </body>
</html>

Related Tutorials