Re: anchor tag

It has always been possible to have other elements inside an anchor element
(but you can nest elements only, not tags).

The snippet you included has several errors, such as three consecutive
apostrophes and lack of an alt attribute (rather crucial for an image that
is the content of an anchor element!). You need to include the actual
markup you used.

su 26. jouluk. 2021 klo 22.09 Rohit Gupta (rohitguptanz@gmail.com)
kirjoitti:

> For some years now, the anchor tag is allowed to have other tags inside.
> Please stop reporting this as an error.  For instance it is allowed to have
> an img tag inside the a tag,
>
>
> So <a href=...><img src=''' /></a>
>
> Is correct.  Nu keep son complaining that the slash is missing from the
> start of anchor tag
>
>
> Otherwise good work.
>
> Regards
>
> *Rohit Gupta*
> B.E. Elec., M.E., Mem IEEE, Member IET
>
>

Received on Monday, 27 December 2021 08:47:51 UTC