diff --git a/doc/global/htmltabs.qdocconf b/doc/global/htmltabs.qdocconf
new file mode 100644
index 00000000000..41aa43dca54
--- /dev/null
+++ b/doc/global/htmltabs.qdocconf
@@ -0,0 +1,60 @@
+#Macros for HTML tabs
+#Usage:
+#\tab {name}{tab-id}{title}{checked}
+#\tabcontent {tab-id}
+# content
+#\endtabcontent
+
+# Ensure that the {name} is unique for the group.
+# i.e A group of tabs can have the same name, whereas
+# {tab-id} should be unique. In addition, the argument
+# for \tabcontent macro should match the {tab-id} for the
+# corresponding \tab.
+
+# The {checked} argument ensures that the tab is selected
+# by default when the HTML page is loaded. For the other
+# tabs that are not selected, pass and empty argument {}.
+#
+# Note that these macros work with the online template only.
+#
+# Example:
+# \if(onlinedocs)
+# \tab {build-qt-app}{tab-cmake}{CMake}{selected}
+# \tab {build-qt-app}{tab-qmake}{qmake}{}
+# \tabcontent {tab-cmake}
+# \else
+# \section1 Using CMake
+# \endif
+# CMake-specific instructions go here
+# \if(onlinedocs)
+# \endtabcontent
+# \tabcontent {tab-qmake}
+# \else
+# \section1 Using qmake
+# \endif
+# qmake-specific instructions go here
+# \if(onlinedocs)
+# \endtabcontent
+# \endif
+
+macro.tab.HTML = ""
+macro.tabcontent.HTML = "