20. The Audio Player

Because audio simply can’t be styled with CSS alone..

Mentor Morrigan

Your task

Hier hast du die Code-Snippets:

JavaScript
const x = document.getElementById("myAudio");

function playAudio() {
    x.play();
}

function pauseAudio() {
    x.pause();
}

Insert it into your HTML and style it properly —
with icons, so it doesn’t look like we dragged it out of some dusty old archive.

First change the HTML, then insert the JavaScript code
otherwise your editor will throw a tantrum and you won’t see any changes.

Solve the task here in the console [–> Open in a new tab]

Scroll to Top