FAQ

FAQ with copy-link anchors

Each answer has its own shareable URL

Live preview
Build an FAQ list with Tailwind CSS where every question can be linked to directly. Use a max-w-3xl column with a heading and a muted subline. Each item is a details element styled as a bordered rounded-xl card with the summary as a flex row holding the question in medium weight, a small link glyph button that appears on hover, and a plus that rotates to a cross when open. The answer is relaxed grey prose with an occasional inline link. Give every item an id derived from its question. Then add JavaScript that copies the absolute URL with the anchor to the clipboard when the link button is clicked, showing a small floating "Link copied" chip near the button for a moment, opens and scrolls to the matching item when the page loads with a hash, and closes other open items so only one answer is expanded at a time.