Ask coding questions

← Back to all posts
Make .svg clickable
EmilySeville7cfg

Hello! Now I have the following .html:

The problem is nothing happens when I click svg image. How to fix that?

Voters
EmilySeville7cfg
Comments
hotnewtop
Coder100

objects don't include an onclick attribute.

Coder100
EmilySeville7cfg

@Coder100, I don't know whether this is the best decision:

Please tell me how this code can be enhanced.