Add doctype

This commit is contained in:
moanos [he/him] 2023-09-13 13:02:54 +02:00
parent 335b1ab456
commit 24db87afd0

View File

@ -6,6 +6,7 @@ import requests
def write_html(df, filename, css=None):
books_as_html = df[["Titel ", "Autor*in", "Sprache", "Kategorie"]].to_html()
with open(filename, "w", encoding="utf-8") as file:
file.writelines('<!DOCTYPE html>\n')
file.writelines('<head>\n')
file.writelines('<meta charset="UTF-8">\n')
if css: