• without parent tags?
  • 后端 未结 7 912
    生来不讨喜
    生来不讨喜 2021-01-13 02:23

    Is it ok to use

  • tags without parent tags?

    i.e.

  • some copy
  • or must it be..

  • 7条回答
    •  误落风尘
      2021-01-13 02:29

      No, that would definitely be invalid (X)HTML. I mean, you could, and the browser might render it correctly if you're lucky (IE in particular, as it tends to be especially lenient), but there's far from any guarantee. You should always enclose

    • tags with either
        (unordered list) or
          (ordered list). Why wouldn't you want to anyway?

    提交回复
    热议问题