CHOOSE ANY STEP
FREECODECAMP / HTML / STEP 13 OF 42
freeCodeCamp: Build a Cat Photo App, Step 13
Wrap the sentence in a paragraph
Written guidance is free. Step videos are a member benefit.
Place an opening paragraph tag at the start of that sentence. Then place its closing tag after the final period. The existing anchor stays inside this new paragraph. Keep its destination and the words cat photos unchanged.
ORIGINAL WALKTHROUGH · 0:48
Watch with Rob.
Watch the explanation, then apply the change and run the official checks on freeCodeCamp.
You are signed in, but video access needs attention. Check your account access. Your saved work is kept.
Video walkthroughs are included with an active Code Zone membership. The written lesson and practice are free.
Your goals for this step
- Apply the requirements for “Wrap the sentence in a paragraph” while keeping the earlier page structure.
- Explain p and the role it plays in this change.
- Explain a and the role it plays in this change.
- Compare the expected preview with your work before running the official checks.
THE TASK
What step 13 asks you to do
- You should add a
pelement aroundSee more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery.. - You should still have the anchor element inside the new paragraph.
Based on the official freeCodeCamp step 13 instructions (opens in a new tab).
Why this works
In this step of freeCodeCamp's Cat Photo App, we're turning the gallery sentence into a paragraph. The link is already there. We just need to wrap the whole sentence, without changing which words are clickable. Find the gallery sentence below the first paragraph, inside main.
What you should see in the preview
Now the sentence has its own paragraph, above the image. The paragraph groups the entire sentence. The anchor inside it still makes only cat photos a link. Keep the period before the closing paragraph tag, too.
Illustrative browser result. External embeds, navigation and form submission are disabled here. Open freeCodeCamp to test the real behavior. Drag the lower-right corner to make this preview taller.
Terms to know
- p: Paragraph
- Groups a paragraph of ordinary text. Browsers usually place space above and below it.
- a: Anchor element
- Creates a link when it has an href. The text or image between its tags becomes the link content.
- href: Link destination
- Specifies where an anchor leads. Keep the address inside the attribute quotes.
If your check does not pass
- You should add a
pelement aroundSee more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery.. - You should still have the anchor element inside the new paragraph.
Use the preview to inspect the structure, then run the checks on freeCodeCamp. Watching here does not submit code or mark an official step complete.
Know where to find it
You do not have to memorize every element or CSS property. Keep useful references nearby:
- W3Schools: paragraphs (opens in a new tab)
Compare the syntax and a focused example.
- W3Schools: links (opens in a new tab)
Compare the syntax and a focused example.
- MDN: HTML element reference (opens in a new tab)
Look up the definition, syntax and supported behavior.
What you have accomplished
The change for “Wrap the sentence in a paragraph” is ready to try. Return to freeCodeCamp, compare your result with the requirements, and run its checks. Your official progress stays there.
Independent guidance from The Code Zone, not affiliated with or endorsed by freeCodeCamp. Complete official work and certification requirements on freeCodeCamp. Curriculum checked November 15, 2026. Curriculum source (opens in a new tab).