If youre are using flask, in the render_template you send the data to the html in a variable
@app.route('/view/', methods=['GET', 'POST'])
def view():
with open('/home/MakerofMarkers/mysite/container.csv', 'r') as csv_file:
csv_reader = csv.reader(csv_file)
return render_template('work.html', data = csv_reader)
This is a example of work.html
<div class="card-body">
<table class="table table-hover">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Data1</th>
<th scope="col">Data2</th>
<th scope="col">Data3</th>
<th scope="col">Data4</th>
<th scope="col">Data5</th>
</tr>
</thead>
<tbody>
{% for line in data %}
<tr>
<td>{{line.id}}</td>
<td>{{line.data1}}</td>
<td>{{line.data2}}</td>
<td>{{line.data3}}</td>
<td>{{line.data4}}</td>
<td>{{line.data5}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
Use jinja2, the data is used with {% %}
In this case i using line.data1, if your lines are list modify this to line[1] for example