Hi,
I have a question about classes on images with a Link:
Let’s say I Insert a svg and add a class directly to that svg. Then I add a link to the svg. The output is as expected:
- The class is added directly to the svg.
Now, if I add a image (i.e. a png file) and give that img the same class it is added to the img tag itself as expected. But if I add a link to that image, that class is moved to the a tag.
So If I want to have that same class on the img-tag I have to insert it as an attribute, because I want to style the img with that class not the link.
What’s the logic behind that behavior?
Thanks