diff --git a/pandas/core/format.py b/pandas/core/format.py
index <HASH>..<HASH> 100644
--- a/pandas/core/format.py
+++ b/pandas/core/format.py
@@ -184,7 +184,7 @@ class DataFrameFormatter(object):
                     row.append(format_col(column, i))
                 write_tr(buf, row, indent, indent_delta)
             indent -= indent_delta
-            write(buf, '</body>', indent)
+            write(buf, '</tbody>', indent)
             indent -= indent_delta
 
         write(buf, '</table>', indent)
closing tag of 'tbody' was 'body'