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

    Something small enough to escape casual notice.

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

  • 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


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.