html doctype adds whitespace?

前端 未结 4 1824
慢半拍i
慢半拍i 2020-12-09 13:03

can someone please explain to me why having a doctype of

and

4条回答
  •  鱼传尺愫
    2020-12-09 13:25

    The first DOCTYPE will render your page in almost standards mode:

    "Almost standards" mode rendering matches "standards" mode in all details except for one. The layout of images inside table cells is handled the same way "quirks" mode operates.

    The second DOCTYPE will render your page in standards mode.

提交回复
热议问题