更新时间:2023-12-03 20:57:34
The HTML standard treats a line break as just another white space character, which is why the <br>
tag exists. Note however a line break will work within a <pre>
tag, or an element with the white-space:pre CSS style.
The third example is just to make "pretty" HTML: it makes it easier to "view source" and check it by eye. Otherwise, you have a big long string of HTML.