Multiple write statements will run together when written to the page even though the text is written on several lines. The reason is that the document.write statement just writes text to the page. It does not add any breaks when its line stop. There are two ways to do line breaks: