When does whitespace matter in HTML?

前端 未结 3 1729
慢半拍i
慢半拍i 2020-11-30 07:22

example 1

<
3条回答
  •  半阙折子戏
    2020-11-30 07:58

    The reality is somewhat complicated. There are two parts

    1. What the parsing does.
    2. What the rendering does.

    The parsing actually removes very little white space whilst parsing text (as opposed to markup). It will remove an initial line feed character at the start of