Agent Ready HTML

Tab and accordion text reaches agents if it is in the HTML

In short

A closed details element still carries its content in the markup, and only its summary is shown. Panel text that script loads or builds after a click is a different case, because Google Search does not interact with the page and Claude's web fetch tool does not support JavaScript-rendered sites.

Published 18 November 2026

In 190 controlled fetch probes across 19 site configurations, which Vercel's guide credits to work done together with the ora.ai research lab, two kinds of change prevented answer retrieval. One hid the answer behind JavaScript from a fetch-only client, and the other returned 403 to both clients. Vercel's guide states that the returned HTML should contain the answer, and that a 403, an empty app shell or a JavaScript-only answer prevents fetch-only agents from reading the page.

Related: Check your initial HTML like an agent does

Related: How to move the answer into the initial HTML without a rewrite

Content that loads on click

Google's lazy-loading guidance asks for loading methods that don't rely on user actions such as scrolling or clicking, and it gives the reason: Google Search does not interact with the page.

Claude's web fetch tool does not support websites dynamically rendered with JavaScript, Anthropic's documentation states. For pages that need clicking, the same page points to the browser use tool, a client tool where your application drives the browser.

Cloudflare's Markdown for Agents fetches the original HTML version from the origin and converts it to Markdown. Its documentation adds that JSON-LD is the only script content preserved in the output; all other script and style content is stripped.

What a closed details element holds

The HTML Standard treats the first summary child of a details element as its legend, and the rest of the element's contents represents the additional information. When the open attribute is absent, only the summary is to be shown. To honor a user's request to show the information, the browser must set the open attribute; to hide it again, the browser must remove that attribute.

In MDN's details reference, the default closed state displays only the triangle and the label inside summary, and the open attribute is absent by default. To start a panel collapsed, remove the open attribute entirely, as MDN's reference instructs. Writing open="false" makes the details visible, because the attribute is Boolean.

An accordion without JavaScript

The name attribute connects several details elements so that only one is open at a time, which lets developers build accordions without scripting, as MDN's example shows:

<details name="requirements">
  <summary>Graduation Requirements</summary>
  <p>Requires 40 credits, including a passing grade in health, geography, history, economics, and wood shop.</p>
</details>
<details name="requirements">
  <summary>System Requirements</summary>
  <p>Requires a computer running an operating system.</p>
</details>

Opening one grouped element causes another to close. If several grouped elements carry open, only the first one in source order renders open.

The HTML Standard sets the author rules. A specified name value must not be the empty string. A document must not contain more than one details element with open present in the same name group. Details elements grouped by a shared name should be kept together in a containing element such as a section or article.

Tab panels

In the ARIA tabs pattern, one panel is displayed when the interface initializes. Activating another tab hides the previously displayed panel and makes the activated tab's panel visible. Each element with role tab has aria-controls referring to its associated tabpanel. The pattern recommends that tabs activate automatically on focus as long as their panels display without noticeable latency, which typically requires tab panel content to be preloaded.

That preloaded case matters for agents: in Vercel's controlled probes, a fetch-only client could not retrieve an answer available only through JavaScript.

The user interaction chapter calls it incorrect to use hidden to hide panels in a tabbed dialog, because the tabbed interface is merely a kind of overflow presentation. The interactive elements chapter states that tab widgets are not disclosure widgets, so building them from details is incorrect.

hidden and hidden=until-found

An element with the hidden attribute is in the hidden state, and its content should not be presented to the user. The keyword until-found sets the hidden until found state instead, in which the content stays accessible to Find in page and to fragment links. Browsers typically implement until-found with content-visibility: hidden, so the element generates boxes and takes part in layout. An until-found element with a display value of none, contents or inline will not be revealed by Find in page. Hidden elements shouldn't be linked from visible elements unless they use until-found.

Per the HTML Standard, elements in a section hidden by the attribute are still active: scripts still execute and form controls still submit, and only their presentation to the user changes. When find-in-page searches, closed details elements and until-found elements should have their skipped contents become accessible without any change to the open or hidden attribute.

Related: Plain Fetch viewer

Triggers that point to other URLs

Per Google's crawlable links guidance, its crawlers can generally only crawl a link that is an <a> element with an href attribute, and can't reliably extract URLs from <a> elements without href or from other tags that act as links through script events. A link that has an href and an onclick handler appears in Google's list of links it can parse. Links inserted with JavaScript are also crawlable as long as they use that markup.

A fallback for panels that script builds

According to MDN's noscript page, the element defines HTML to be inserted when a script type is unsupported or scripting is turned off, and with scripting disabled it represents its children as HTML content. With scripting enabled, it represents them as text.

Test each collapsed panel

Fetch the page with curl and search the returned HTML for one sentence from each collapsed panel. Vercel's guide says the request should end with a 200 response, with intermediate 301 or 308 redirects acceptable, and the returned HTML should contain the answer.

A curl request cannot confirm whether a real agent is blocked, the guide warns, because bot blockers weigh where a request comes from more than its user-agent string. Server logs are the best operational check: OpenAI and Anthropic publish crawler IP ranges, so find requests from those ranges and confirm they reach the intended page and receive the expected response.

Related: How to see your site as a plain-fetch client

Sources

  1. MDN: <details>: The Disclosure element https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/details, read 18 November 2026
  2. WHATWG: HTML Standard: Interactive elements https://html.spec.whatwg.org/multipage/interactive-elements.html, read 18 November 2026
  3. MDN: hidden global attribute https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/hidden, read 18 November 2026
  4. WHATWG: HTML Standard: User interaction (hidden attribute) https://html.spec.whatwg.org/multipage/interaction.html, read 18 November 2026
  5. W3C WAI: Tabs Pattern (ARIA Authoring Practices Guide) https://www.w3.org/WAI/ARIA/apg/patterns/tabs/, read 18 November 2026
  6. Google Search Central: Fix lazy-loaded content https://developers.google.com/search/docs/crawling-indexing/javascript/lazy-loading?hl=en, read 18 November 2026
  7. Google Search Central: Make your links crawlable https://developers.google.com/search/docs/crawling-indexing/links-crawlable?hl=en, read 18 November 2026
  8. Anthropic: Web fetch tool https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-fetch-tool, read 18 November 2026
  9. Cloudflare: Markdown for Agents https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/, read 18 November 2026
  10. MDN: <noscript> https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/noscript, read 18 November 2026
  11. Vercel: Make your site readable by AI agents https://vercel.com/kb/guide/make-your-site-readable-by-ai-agents, read 18 November 2026

Last reviewed 18 November 2026