Skip to main content
Participant
October 22, 2021
Answered

Audio tag

  • October 22, 2021
  • 3 replies
  • 289 views

How do I change this so the audio starts in pause mode?

<audio
autoplay="autoplay" controls>
<source src="mysong.mp3">
</audio>

    This topic has been closed for replies.
    Correct answer Nancy OShea

    Remove autoplay.

    <audio controls>
    <source src="mysong.mp3">
    </audio>
    

     

    3 replies

    Participant
    October 25, 2021

    My error, it works, thanks.

    Participant
    October 23, 2021

    I removed the ="autoplay"
    leaving
    <audio
    autoplay controls>
    <source src="mysong.mp3">
    </audio>

    The result is the same.

    Nancy OShea
    Community Expert
    Community Expert
    October 23, 2021

    No.  Autoplay must be removed entirely.

     

    <audio controls>
    <source src="mysong.mp3">
    </audio>

     

    Nancy O'Shea— Product User & Community Expert
    Nancy OShea
    Community Expert
    Community Expert
    October 23, 2021

    Please refer to this code tutorial about <audio> attributes and what they mean.

    https://www.w3schools.com/tags/tag_audio.asp

     

    Nancy O'Shea— Product User & Community Expert
    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    October 22, 2021

    Remove autoplay.

    <audio controls>
    <source src="mysong.mp3">
    </audio>
    

     

    Nancy O'Shea— Product User & Community Expert