This is wrong advice. H tags are for reader's, search engines "aparently" use them for determining the relevancy sites. H1 tags are also for people with vision issues. We can use H tags to help with SEO but don't beleive that is the purpose they exist.
H tags are there to show importance of a statement, to make it stick out. This is the main purpose. Knowing that, search engines read them as important words or phrases on your site, and use them to help index your page.