HTML largely ignores whitespace which doc mentioned this specsv
The HTML Living Standard (https://html.spec.whatwg.org/multipage/) mentions the behavior of HTML in relation to whitespace handling. Specifically, it states that HTML parsers should treat consecutive whitespace characters (such as spaces, tabs, and line breaks) as a single space, and they should ignore leading and trailing whitespace within elements.
原文地址: https://www.cveoy.top/t/topic/iJ9C 著作权归作者所有。请勿转载和采集!