HTML 5: Is it
,
, or
?

后端 未结 29 3266
滥情空心
滥情空心 2020-11-22 00:26

I\'ve tried checking other answers, but I\'m still confused — especially after seeing W3schools HTML 5 reference.

I thought HTML 4.01 was supposed to \"allow\" singl

29条回答
  •  不知归路
    2020-11-22 00:35

    In validation, of this question, it really depends on what !DOCTYPE you are trying to get verification through.

    My personal favorite is 4.01 Trans where I just use the
    and it clears the warnings and errors that may have popped up during validation

    Strict is a much more complicated beast, It HATES "SHORTTAGS" and quite literally only wants the

    In HTML5 or the "LAX" of the code world, there really isn't a right answer because it detects every example you put up there as correct......

    In the end, I think all that matters is what validation YOU PREFER or the person that you are working for prefers... with the lackadaisical movement in code strictness in html5 we are seeing some VERY LAZY CODERS

提交回复
热议问题