For testing purposes, it is convenient to use document.write():
My first paragraph.
Using document.write() after an HTML document is fully loaded, will delete all existing HTML:
The document.write() method should be used only for testing.