CHOOSE ANY STEP
FREECODECAMP / HTML / STEP 39 OF 42
freeCodeCamp: Build a Cat Photo App, Step 39
Name the browser tab
Written guidance is free. Step videos are a member benefit.
Inside the head, add a title element. Put CatPhotoApp between its opening and closing tags, with no spaces between those three words. Use the exact capitalization shown in the official step. Keep the closing title tag before the closing head tag.
ORIGINAL WALKTHROUGH · 0:55
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 “Name the browser tab” while keeping the earlier page structure.
- Explain title and the role it plays in this change.
- Compare the expected preview with your work before running the official checks.
THE TASK
What step 39 asks you to do
- You have either deleted the
headelement or it is missing an opening tag or closing tag. - Your
titleelement should be nested in theheadelement. Make sure to add an opening tag and closing tag for thetitleelement. - Your
titleelement should have a closing tag. Closing tags have a/just after the<character. - Your
titleelement's text should beCatPhotoApp.
Based on the official freeCodeCamp step 39 instructions (opens in a new tab).
Why this works
Let's name our document in freeCodeCamp's Cat Photo App. Find the empty head near the top of the HTML. This step adds the title that a browser can show in its tab. The visible page heading stays in the body.
What you should see in the preview
The document now has a title. Notice the title label above our page preview. The title describes the document to the browser, while the main heading is content on the page. Changing one does not automatically change the other.
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
- title: Document title
- Names the browser tab. It is separate from the visible main heading inside body.
If your check does not pass
- You have either deleted the
headelement or it is missing an opening tag or closing tag. - Your
titleelement should be nested in theheadelement. Make sure to add an opening tag and closing tag for thetitleelement. - Your
titleelement should have a closing tag. Closing tags have a/just after the<character. - Your
titleelement's text should beCatPhotoApp.
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: page title (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 “Name the browser tab” 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).