Welcome to the Treehouse Community
Looking to learn something new?
How to save elements added to the DOM?
Steven Parker216,057 Points
If you wanted to make permanent changes to the HTML file, you'd need to send the info back to the server (sometimes called a "postback" operation), and the server program would need to receive that update and apply it to the HTML file directly.
In the browser, you could write it into the local storage, and each time the page is re-loaded your script could add it back to the DOM.
If your website supports a forum, you have other mechanisms where information in a database is used to construct pages on demand, and that process could be used for this as well.