--- server_http.c.orig  Tue Mar 30 08:24:33 2021
+++ server_http.c       Tue Mar 30 08:18:29 2021
@@ -922,24 +922,24 @@

       /* A CSS stylesheet allows minimal customization by the user */
       style = "body { background-color: white; color: black; font-family: "
-           "'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif; }\n"
-           "hr { border: 0; border-bottom: 1px dashed; }\n"
+           "sans-serif; }\nhr { border: 0; border-bottom: 1px dashed; }\n"
           "@media (prefers-color-scheme: dark) {\n"
           "body { background-color: #1E1F21; color: #EEEFF1; }\n"
           "a { color: #BAD7FF; }\n}";

       /* Generate simple HTML error document */
       if ((bodylen = asprintf(&body,
-           "<!DOCTYPE html>\n"
+           "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n"
+           "   \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"
           "<html>\n"
           "<head>\n"
-           "<meta charset=\"utf-8\">\n"
+           "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n"
           "<title>%03d %s</title>\n"
-           "<style type=\"text/css\"><!--\n%s\n--></style>\n"
+           "<style type=\"text/css\">/*<![CDATA[*/\n%s\n/*]]>*/</style>\n"
           "</head>\n"
           "<body>\n"
           "<h1>%03d %s</h1>\n"
-           "<hr>\n<address>%s</address>\n"
+           "<hr />\n<address>%s</address>\n"
           "</body>\n"
           "</html>\n",
           code, httperr, style, code, httperr, HTTPD_SERVERNAME)) == -1) {
--- server_file.c.orig  Tue Mar 30 08:24:53 2021
+++ server_file.c       Tue Mar 30 08:19:59 2021
@@ -484,16 +484,17 @@

       /* Generate simple HTML index document */
       if (evbuffer_add_printf(evb,
-           "<!DOCTYPE html>\n"
-           "<html>\n"
+           "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n"
+           "   \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"
+           "<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\">\n"
           "<head>\n"
-           "<meta charset=\"utf-8\">\n"
+           "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n"
           "<title>Index of %s</title>\n"
-           "<style type=\"text/css\"><!--\n%s\n--></style>\n"
+           "<style type=\"text/css\">/*<![CDATA[*/\n%s\n/*]]>*/</style>\n"
           "</head>\n"
           "<body>\n"
           "<h1>Index of %s</h1>\n"
-           "<hr>\n<pre>\n",
+           "<hr />\n<pre>\n",
           escapedpath, style, escapedpath) == -1)
               skip = 1;

@@ -546,7 +547,7 @@

       if (skip ||
           evbuffer_add_printf(evb,
-           "</pre>\n<hr>\n</body>\n</html>\n") == -1)
+           "</pre>\n<hr />\n</body>\n</html>\n") == -1)
               goto abort;

       close(fd);