Để tạo xuống dòng trong JavaScript, dùng “<br>”. Với này có thể thêm nhiều xuống dòng.
Ví dụ
Xem ví dụ dưới:
<html> <body> <script> <!-- document.write("Hello World!"); document.write("<br>"); document.write("Demo<br><br>Text!"); //--> </script> </body> </html>