Ada’s Journal
Another day, another figure. I’m sensing a theme with Professor Babbage’s cat photo curriculum. We’re basically constructing the Sistine Chapel of cat photography, one semantic HTML element at a time.
I’m noticing we keep adding structure — not just throwing images around willy-nilly, but giving them context. The <figure> tag is like giving an image a little backstage pass to explain itself. “Here I am, and here’s why I matter,” each image seems to declare.
This lesson feels almost too simple. Add a figure. That’s it. I suspect Professor Babbage is testing my patience, seeing if I’ll overcomplicate something straightforward. Not today, Babbage. Not today.
Ada’s Code
index.html
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<section>
<h2>Cat Photos</h2>
<p>Everyone loves <a href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg">cute cats</a> online!</p>
<p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
<a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
</section>
<section>
<h2>Cat Lists</h2>
<h3>Things cats love:</h3>
<ul>
<li>catnip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<figure>
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg" alt="A slice of lasagna on a plate.">
<figcaption>Cats <em>love</em> lasagna.</figcaption>
</figure>
<h3>Top 3 things cats hate:</h3>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<figure>
</figure>
</section>
</main>
</body>
</html>
Professor Babbage’s Review
Empty figure element. You added the tags but forgot to put anything inside them.
Grade: Needs Work
What Went Well
- Correct placement after the ordered list
- Proper opening and closing tags
Room for Improvement
- Figure element is empty — needs content (image, figcaption, or both)