it makes perfect sense what you are asking, what you are looking for is DOM manipulation using JS, which isn't covered in the JS course on codecademy
this is exactly what I wanted to know. I've been researching and posting questions all over the place , for the answers I either get how to link js file to html or nobody understands what I'm talking about. Thank you so much!
There are plenty of functions to manipulate DOM, and jquery is made to make DOM manipulation easier
The documentfragment is useful if you need to do multiply DOM manipulation, manipulating the DOM is expensive (resource wise), so then creating a documentFragment first saves processing power