WordPress glossary

Details block

Content hidden behind a summary that visitors click to expand.

The Details block hides content behind a short summary line that visitors can click to show or hide the rest. It’s a good fit for FAQs, spoilers, or long technical details that only some readers need.

What happens when I click this?

The content inside the Details block appears, like this paragraph. Click the summary again to hide it.

The content inside can be any blocks, like paragraphs, lists or images. The block uses the HTML details and summary elements, so it works without JavaScript and is accessible to screen readers.

Published November 24, 2026

Related terms