The list is not a string, but a list of objects. That’s why you cannot use the list itself in your string. You need to loop the list and in that loop you can change the variable.
Extra suggestion: do not add HTML and CSS into a variable. Use a dataview to show show object data and a listview to show a list of objects. You can add classes and styling to them.
Hello ERUPA SHIREESHA,
First, create a list on a page then add a table and then add a text and select attribute by this way you can able to add a list of data to a table. Hope this will work for you.