The minimal spec valid HTML5 document is currently:
<!DOCTYPE html>
<title>a</title>
Practically, browsers will accept omitting both of these, and the spec even allows for omitting the title "if it is provided by a higher level protocol"So it's not that crazy an argument that a plain text file is a html document