A second Riverstone garden page needs a compact “Before You Visit” area. Add questions people can open when needed and a seedling image whose caption stays connected to the image.
An FAQ with expandable answers (one open by default) and a captioned figure with an image and figcaption, keeping media and explanation together.
Target: an FAQ with one answer already visible and a captioned illustration beneath it. In the preview, clicking each question should reveal only that question's answer.
<details> creates a disclosure widget with no JavaScript. Its <summary> is the visible control; the rest of the content appears when a visitor opens it.
<details>
<summary>Can I bring a reusable bag?</summary>
<p>Yes. Bring one for your harvest share.</p>
</details>
The content starts collapsed. Add the boolean open attribute when one answer should be visible on page load.
<details open>
<summary>Where is the garden gate?</summary>
<p>Enter beside the blue tool shed on Willow Lane.</p>
</details>
Use this pattern for FAQs, optional instructions, or spoiler-free extra detail. Put <summary> first so the control is easy to find and use.
A <figure> groups self-contained media with its explanation. The media can be an image, diagram, chart, or code sample. <figcaption> names or describes it.
<figure>
<img src="seedlings.jpg" alt="Tomato seedlings in trays beside a sunny window">
<figcaption>Tomato seedlings ready for the Saturday planting table.</figcaption>
</figure>
Unlike a plain <div>, this structure tells browsers and assistive technology that the image and caption belong together. The caption may be the first or last child of the figure.
Preview the page. One FAQ answer should be visible immediately; the other answers should appear only after their summaries are clicked. The illustration caption should read as part of the same unit as the image. If a question will not toggle, make sure its <summary> is inside its <details>.
<details> elements, each with an answer about visiting the garden.<summary> inside each <details> element.open attribute to exactly one <details> element so one answer starts expanded.<figure> containing an <img> with descriptive alt text for the garden page. Use an available image URL (the starter contains no image asset).<figcaption> inside that figure to describe the image.The visit information now stays tidy while the photo carries its own explanation—useful context without extra scripting or detached captions.
The <details> element is collapsed by default. Add the open attribute to expand it on load.
The first child of <details> should be a <summary> — it becomes the clickable toggle text.