3

I have the following HTML details element that is closed by default.

<details>
  <summary>Details</summary>
  <p>
    Something small enough to escape casual notice.
  </p>
</details>

Does search engines' robots, specifically, googlebot index the paragraph inside of it?

2
  • 1
    By "closed" I assume you mean that it requires a click for users to see the contents? Commented Jun 14, 2022 at 13:49
  • Yes! It needs a click to be opened. Enter also opens it if it is focused.
    – mahan
    Commented Jun 14, 2022 at 13:52

1 Answer 1

3

Due to the fact that the content within an element is not hidden from users (only activation is required to view it), Googlebot will crawl this content and will probably index it if all the main content is not against Google policy.

However, because the content is removed/hidden from the direct download stream, Google may give this content a lower priority than content downloaded in the direct stream.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.