CHOOSE ANY STEP
FREECODECAMP / HTML / STEP 4 OF 7
freeCodeCamp: Build an Accessible Audio Controller, Step 4
Add a little guidance beside the label
Written guidance is free. Step videos are a member benefit.
Inside the div element, just below the span whose id is volume-label, add a second span element.
ORIGINAL WALKTHROUGH · 1:07
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
- Complete step 4: Add a little guidance beside the label.
- The second span is a sibling of the Volume span.
- Compare the browser result with the requirement before running the official checks.
THE TASK
What step 4 asks you to do
- Inside the div element, just below the span whose id is volume-label, add a second span element.
- Give the new span an id of volume-description.
- Between its tags, write Adjust the sound level. Keep the two spans as siblings.
Based on the official freeCodeCamp step 4 instructions (opens in a new tab).
Why this works
The second span is a sibling of the Volume span. Separate IDs let the input refer to both pieces of text later. Spans are inline, so separate source lines do not create separate paragraphs.
What you should see in the preview
Adjust the sound level appears beside Volume when space allows. The inline text may wrap in a narrow preview. The source still contains two separate spans, not two paragraphs.
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
- span: Span element
- Wraps a small piece of inline content. Separate spans do not create separate paragraphs.
- id: ID attribute
- Identifies one element in a document. Keep each ID unique and match the required spelling.
- div: Division element
- Groups content without giving it a specific semantic meaning. Classes and IDs can identify a group.
If your check does not pass
- Check that the new element is inside the exact parent named in the task.
- Compare required text, attribute names and quoted values letter by letter.
- Preserve the earlier elements, then run the checks on freeCodeCamp.
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: blocks (opens in a new tab)
Compare the syntax and a focused example.
- W3Schools: id (opens in a new tab)
Compare the syntax and a focused example.
- W3Schools: div (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 “Add a little guidance beside the label” 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 16, 2026. Curriculum source (opens in a new tab).