These header types are important visually and programmatically, specifically to search engines like Google. When a user searches for the word “test,” if “test” appears in one of the 6 header types on any one of your pages, the search engine will rank that page as more relevant than others and place it higher in search results. Be aware, though, that is only part of the battle. If a user clicks off your page quickly and continues searching, the search engine will consider your page not as relevant and will demote it. The headers should always denote important and relevant information, just as if you were writing a paper. 

The different header types are styled in such a way that they decrease in size and padding (so, visual importance) as the numbers get bigger. For example, H1 will be the largest font and H6 will be the smallest. Header types also decrease in programmatic importance as the number increases. For example, if “test” appeared in an H1 header type and an H6 header type, the H1 “test” would be considered more relevant and important to the content than the H6 “test.”