I want to display each item in individual div element but how do I create an element?

The program is supposed to display individual array items in “tue” array,the problem is how to create a div but inside an existing div “cent”, how do I solve this or is there any alternative way of but involving creating a a div element?

The program does not show anything in the div element “cent”