thecodezone.
The Code Zone
Short steps, at your pace · Free lessons and practice · Member video walkthroughs
Save your next small win.

Checking your account…

Workshop overview

CHOOSE ANY STEP

FREECODECAMP / HTML / STEP 2 OF 7

freeCodeCamp: Build an Accessible Audio Controller, Step 2

Add the Play button

Written guidance is free. Step videos are a member benefit.

Inside the body element, just below the closing h1 tag, add a button element.

ORIGINAL WALKTHROUGH · 1:01

Watch with Rob.

Watch the explanation, then apply the change and run the official checks on freeCodeCamp.

LEARN WITH THE CODE ZONE

Unlock this video walkthrough

Written lessons and coding practice are free. Video walkthroughs are included with a paid Code Zone membership or an active free trial.

Have a Code Zone website account? Use your learning account’s email to get a six-digit sign-in code, or use your existing website password.

Need a website account? Paid Skool members and active trial members can use the email from their membership questions to request a sign-in code. No invite link or Skool password needed.

Close this window to keep practicing. After signing in, you’ll return to this lesson.

Video walkthroughs are included with an active Code Zone membership. The written lesson and practice are free.

Your goals for this step

  • Complete step 2: Add the Play button.
  • A native button already supports keyboard focus and activation.
  • Compare the browser result with the requirement before running the official checks.

THE TASK

What step 2 asks you to do

  • Inside the body element, just below the closing h1 tag, add a button element.
  • Set the opening button tag’s type attribute to button.
  • Put Play between the button tags.

Based on the official freeCodeCamp step 2 instructions (opens in a new tab).

Why this works

A native button already supports keyboard focus and activation. Setting its type to button identifies an ordinary button rather than a form submission control. Playback needs additional behavior, which this HTML workshop does not add.

What you should see in the preview

A small Play button appears below the heading and can receive keyboard focus. It does not play sound, because no audio source or playback code has been added.

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

button: Button element
Creates a native button. HTML provides the control, but an action such as a working cart needs additional behavior.
buttonType: Button type
The value button identifies an ordinary button rather than a submit button. An actual playback action needs additional behavior.
body: Document body
Contains the page content shown to visitors. Keep visible headings, paragraphs, lists and media inside it.

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:

What you have accomplished

The change for “Add the Play button” 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).