Hallo zusammen,
ich habe auf einer Webseite die Möglichkeit eines Telefonats mit einem Button wie folgt gelöst.
<button>
<a href="tel:+497911234"><img src="icons/icons8-phone-50.png" alt="Telefon" class="icon"> Fon: 0791 1234</a>
</button>
Das wird vom validator.w3.org wie folgt angemeckert. The element a with the attribute href must not appear as a descendant of the button element.
Was mache ich hier falsch?