change cover html generation to produce valid html

- added missing doctype
- added encoding statement
- removed invalid additional opening <body> tag