There are six heading elements in HTML. They are ordered from the largest to the smallest. While the largest are mostly used to get attention, while the smaller ones are used to write content.
HTML headings are written as following:
--- used for main headings --- smallest heading