Is it ok to have an `` inside another ``?

前端 未结 4 1420
小鲜肉
小鲜肉 2020-12-20 11:22

If I had a link to another page, and another link was put inside it, would that be ok to do? Is it allowed in HTML5 and if so, which browsers support it?

Trying this

4条回答
  •  情书的邮戳
    2020-12-20 11:48

    Even on HTML5 it's not allowed...

    See here: HTML5 draft at W3C

    The a element may be wrapped around entire paragraphs, lists, tables, and so forth, even entire sections, so long as there is no interactive content within (e.g. buttons or other links).

提交回复
热议问题