Removing more than one HTML element
In this piece of code you can see how to add and remove more than one HTML element from your app. You need to code two functions: one for adding HTML elements and one for removing HTML elements from the app. Set up the onclick attribute in your function, so every new HTML element has an onclick attribute and then can be removed from the app when it is clicked.
See the Pen M3 CS Removing more than one HTML element by Walker Books UK (@walkerbooks) on CodePen.