Is it semantically correct to nest an
element within a
  • element?
  • 后端 未结 2 865
    我寻月下人不归
    我寻月下人不归 2021-02-19 02:17

    using HTML5, would it be semantically correct to place an

    element within a
  • element. A situation where this would prove usefu
  • 2条回答
    •  萌比男神i
      2021-02-19 02:30

      If it displays correctly in all implementations, I don't have any idea why it would be incorrect... HTML5 is meant to be flexible. Also, the documentation states:

      Contexts in which this element can be used: Where flow content is expected.

      Which looks to be the context of most elements available.

    提交回复
    热议问题