diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index e16e0747a..f4333e015 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -3178,7 +3178,9 @@ contextual information."
(format "
"
(if (equal attributes "") "" (concat " " attributes))
(if (not caption) ""
- (format "%s"
+ (format (if org-html-table-caption-above
+ "%s"
+ "%s")
(org-export-data caption info)))
(funcall table-column-specs table info)
contents)))))
@@ -3387,7 +3389,6 @@ Return output file name."
;;;; org-format-table-table-html
;;;; org-table-number-fraction
;;;; org-table-number-regexp
-;;;; org-html-table-caption-above
;;;; org-html-inline-image-extensions
;;;; org-export-preferred-target-alist
;;;; class for anchors