H tags, or H1-H6 (the 6 levels of headings), are HTML section elements used to prioritise and summarise the meaning of the content that follows. Like other elements or tags in a website’s code, a page with poor header structure might appear fine, but rom an SEO point of view, it’s an entirely different matter.
Good code and good SEO are closely related. When code doesn’t follow a clear structure, it becomes harder for the search engines to understand, which in turn impacts rankings.