Using Javascript to append elements to html: is this good or can be better?

Soo, i know there must be 1000000 questions like this here, but please help me. I’m using javascript document.createElement to create containers and elements based on a sql + php database search results. I just wanna know if this is any good, or if its slow trash. It’s all working fine, but can i improve it? What is a better practice in this case? Obs.: I appended a screenshot, but if necessary i can copypaste all code.Example code