On-Page Testing Maps HTML Tag Rules Governing Google Keyword Weight
Google weights on-page keywords across specific HTML tag rules, cutting off heading credit past <h4> and often discounting copy trapped in <div> containers.
Kyle Roof reports running an 11,000-page case study on LLM-generated content and finding that around 60% of the output omits the target keyword from the <title> tag or the <h1>.
The <title> and <h1> remain the heaviest on-page signals, followed by a descending subheading hierarchy where <h2> outweighs <h3> and <h3> outweighs <h4>.
Google does not look past <h4>, leaving <h5> and <h6> tags outside the algorithm, though template-constrained pages should include at least up to an <h3>.
Below subheadings, clickable in-body anchor text — such as a jump link running from the top to the bottom of the page with the target keyword or contextual terms — acts as the final major on-page signal before remaining factors equalize.
Furthermore, regarding subheading frequency, exact keyword counts depend on the query, though without tool data an 80/20 rule says to place the target keyword one time.
When a query carries an alternative phrasing — such as "lawyer" versus "attorney," or industry terminology versus layman's phrasing — Roof would place that variation in the first <h2> because the terms are probably closely connected.
Once <title> and <h1> keyword math is covered, getting variations into that first <h2> takes priority, maybe more so than repeating the target keyword itself.
Separately, page builder interactive elements such as drop-downs and sliders often strip out <h2> and <p> HTML tags and wrap the copy inside an empty <div> by default.
Even when a layout displays visual headings and paragraph copy on screen, reducing that markup to raw text inside an empty <div> means Google takes a long time to read it and often discounts text sitting outside standard HTML tags.