So I have the following:
<
The document
object represents an HTML document; any text written to the document will be processed by the browser's HTML renderer. In HTML, all adjacent whitespace, including line breaks (e.g., "\n"
), are collapsed into a single space when rendered. This is why you need
, which is rendered as a line break. You can make \n
work by replacing it with
or by writing into a element:
Hello World