How to create a valid clickable image for W3C?

2

According to the response of this

asked by anonymous 13.05.2016 / 16:37

1 answer

4

Actually, a small correction: When I asked the question, I misunderstood the answer saying that IMG is not accepted within A .

According to the W3C it is not recommended to use IMG as the child of a A when the IMG tag has the usemap attribute.

Then, in fact, there is no problem in using a Img within a A , it is valid for the W3C validator (I did the tests here).

Only show eros when we use usermap

In This Answer in SOEN, we have the explanation about the elements that are not accepted by w3c within a <a> .

The excerpt on img reads as follows:

  

<img> (if the usemap attribute is present)

What translating is:

  

<img> (If the usemap attribute is present)

I apologize for the scare that some people have gone through, thinking that I was doing gambiarra!

    
13.05.2016 / 16:59