Semantic HTML is routinely sold as an optimisation technique, often with claims that specific elements boost rankings. Most of those claims do not hold up, and the genuine benefits are worth separating from the folklore.
What search engines actually do with markup
A crawler downloads a page, parses it, renders it, and works out what it is about and which parts matter. Markup helps with the last step: distinguishing the main content from navigation, headers, footers and adverts, and understanding how the content is organised.
That distinction is genuinely useful to them. A page where the same forty navigation links appear on every page needs to be understood as being about the unique content in the middle, and structure is one of the signals that makes it obvious.
Headings are the clearest case
Heading elements outline a document, and search engines use that outline to understand what a page covers and which sections address which questions. This matters more as results increasingly extract specific passages rather than linking to whole documents.
The practical advice is unglamorous. One level one heading describing the page. Level two headings for major sections, phrased the way someone would actually ask about that topic. No skipped levels. No headings used for visual size.
What does not work is packing headings with search terms. A heading exists to describe the section beneath it, and one written for a crawler rather than a reader tends to read badly, which costs more than it gains.
Link text carries weight
The words inside a link describe the page it points at, and this has been used by search engines since the beginning. It applies to internal links as much as external ones.
Descriptive anchor text is therefore a real signal, and it happens to be the same thing accessibility requires. Writing link text that makes sense out of context serves both, which is the most straightforward alignment between the two disciplines.
Where the claims are overstated
Several widely repeated ideas do not survive scrutiny. Using article and section elements does not rank a page higher; they help with comprehension and are not a ranking input. The strong element does not carry more weight than the b element for search purposes. The keywords meta tag has been ignored for well over a decade.
Nor is there a magic number of headings, a required keyword density, or a benefit to marking up the same content several ways. These persist because they are easy to describe and easy to sell.
Structured data is the separate thing
What does produce visible results is structured data, which is a different mechanism from semantic HTML. It describes the subject of the page in an agreed vocabulary and makes the page eligible for enhanced result formats.
That eligibility is worth having, because a result showing a rating or a set of expandable questions occupies more space and attracts more attention. It remains eligibility rather than ranking, and it must describe content that is actually on the page.
The indirect route matters more
The strongest connection between semantic markup and search performance is indirect. Search engines increasingly measure how a page performs for real users, through metrics covering loading speed, responsiveness and layout stability.
Semantic markup tends to correlate with pages that do well on these, because using native elements means less JavaScript reproducing behaviour the browser already has. A page built from real buttons and links is lighter and more responsive than one that rebuilds them from divs.
Accessibility feeds in the same way. A page that is easy to navigate keeps people on it, and a page that is unusable for part of its audience loses that audience entirely, which is a business cost regardless of rankings.
What to actually do
Write a sensible heading outline. Use main, nav, header and footer so the primary content is identifiable. Use real buttons and links. Write descriptive link text and alt text. Add structured data matching what the page contains. Make sure the page is fast and stable.
None of that is a trick, and the list is short because the honest version of this advice is short. Content quality and relevance decide rankings, and markup helps a good page be understood correctly rather than substituting for one.