Practice · 3 steps · about 5 minutes
Add a reviews section to Harbour & Pine
Harbour & Pine is a small online shop. The owner wants new visitors to see what real customers say. You’ll build that section, one typed line at a time.
- HTMLGive the section a heading
- CSS3 columns on wide screens, 1 on phones
- JSOne review at a time, with a Pause button
This is a practice copy. Nothing you type here can break a real website.
The store preview is live: scroll it, and try the Phone button.
HTMLStep 1 of 3
Give the section a heading
All 3 steps done
You shipped it.
Harbour & Pine now has a reviews section that works on a phone, with a keyboard, and with a screen reader.
- HTML
Named the section
<h2 id="reviews-title">What our customers say</h2> - CSS
3 columns on wide screens
grid-template-columns: repeat(3, 1fr); - JS
One review at a time
items[current].hidden = false;
Structure first, then looks, then behaviour: HTML → CSS → JavaScript.
A .zip with index.html, styles.css and script.js. Unzip it and open index.html in any browser.
Want to keep going?
- In script.js, change
DELAYto3000. What changes? - In index.html, copy one review card and write your own.