Learn HTML audio in 5 minutes! 🔊

Поделиться
HTML-код
  • Опубликовано: 25 авг 2024
  • HTML audio mp3 tutorial example explained

Комментарии • 69

  • @BroCodez
    @BroCodez  Год назад +32

    Document
    Catch Me If I Fall




    Dreaming On



    Losing My Mind

    • @subbotin459
      @subbotin459 8 месяцев назад +4

      what does meta do?

    • @abishekcse
      @abishekcse 8 месяцев назад

      ​@@subbotin459meta is compatiblity tag,it sets the web page standard

    • @KierJoyel
      @KierJoyel 4 месяца назад

      Music vedio
      music video


      Your browser does not support the audio element.

  • @pandquot
    @pandquot Год назад +19

    I just finished highschool and i started coding today.Thank you!

  • @teacherlee1270
    @teacherlee1270 8 месяцев назад +5

    question - why did you include "



    Document" into the head? It seemed like previous videos didn't include this code.

    • @AdelArbaoui-fb7zo
      @AdelArbaoui-fb7zo 8 месяцев назад

      the same question

    • @kuragehim018
      @kuragehim018 7 месяцев назад

      thats just the basics for an html code.

    • @teacherlee1270
      @teacherlee1270 6 месяцев назад +4

      oh I figured it out: if you manually type in: those lines won't show up. If you use "! + tab" to write DOCTYPE then it will show up.

    • @BC_IMMU
      @BC_IMMU 15 дней назад

      Thanks buddy ​@@teacherlee1270

  • @Grug__
    @Grug__ Год назад +1

    Thanks for the series man

  • @zedshdox5766
    @zedshdox5766 Год назад +2

    chokran hbibi

  • @brandonclarke7079
    @brandonclarke7079 7 дней назад

    I'm following along, but the "autoplay" control isn't working.

  • @chilioil7686
    @chilioil7686 6 месяцев назад +1

    what if i only want the volume button to appear on the control? thanks!

  • @MEKONMESSIN
    @MEKONMESSIN 8 месяцев назад +1

    Great video -learned it in 5 mins ---now can the titles be placed before or after the play bar?--and can the players be made smaller than the size you have?? -I would like to get 20 songs on a page with some images and would like to know if it's possible??-thanks!!

  • @did_someoneknow
    @did_someoneknow 5 месяцев назад +4

    And how to autoply the audio when we open the browser?

    • @YASHRSEWDA
      @YASHRSEWDA 14 дней назад

      , add the autoplay attribute to the audio tag

  • @romanap82584
    @romanap82584 5 месяцев назад +1

    Thanks!

  • @Johnn870
    @Johnn870 7 месяцев назад +1

    Thanks teacher 🙏
    But can we make it change the audio playing from one to another automatically?
    If yes, how so
    Thanks 🙏

  • @user-wc5tl3cc2u
    @user-wc5tl3cc2u Месяц назад

    love you bro. I am your new subscriber.

  • @yorlinvarela9683
    @yorlinvarela9683 4 месяца назад

    The Best.. thankyou

  • @khilafahempire
    @khilafahempire 27 дней назад

    For me my audio pauses in middle of audio. It plays and randomly stops somewhere and when I play it, it starts from the beginning! What's wrong??

  • @vampy407
    @vampy407 8 месяцев назад +1

    when i view it in my website it show's the length of the audio is 0 for some reason i didn't use this video's code but if anyone knows ^

    • @CJ-zu9ut
      @CJ-zu9ut 6 месяцев назад

      same prob here

    • @vortex_studio_the_better
      @vortex_studio_the_better 3 месяца назад

      Maybe because the name of your file isn't with ".mp3" in the code. Sorry for the mistakes...

  • @aligharbi509
    @aligharbi509 10 месяцев назад +2

    guys I have a question , when i put my audio files in my code , everything is perfect but when I activate my html page it doesn't show the audio files or it just stays at 0 , can anyone give me a solution ?

    • @pencilaturdesk143
      @pencilaturdesk143 9 месяцев назад +1

      Did you run your code in W3C and look for any errors? Also remove any spaces in your audio file, for example: dog barking.mp3 then turn it into dogbarking.mp3. I had that problem with images but i had to remove spaces. Or it could be that your file format isn't compatible with your browser. God bless u :D i hope this solves ur problem

    • @pencilaturdesk143
      @pencilaturdesk143 9 месяцев назад

      also i forgot that u need to move your audio files closer to your html folder or you maybe need to rewrite your code

    • @pencilaturdesk143
      @pencilaturdesk143 9 месяцев назад

      Also if your audio files close together you dont need to do "/folder name/audio file", only do that command when your audio is not close to your html file. Make sure to add controls in

    • @pencilaturdesk143
      @pencilaturdesk143 9 месяцев назад

      only use "/folder name/file name" when audio or video or image is not in the same folder as your html. When your audio or video or image is the same folder as your html just do "file name" also make sure your file name have no spaces

    • @aligharbi509
      @aligharbi509 9 месяцев назад +1

      @@pencilaturdesk143 thnx for replying to me , I figured out that my audio files hada width of 0 so that's why XD

  • @dodojef301
    @dodojef301 2 месяца назад

    can we use labels instead of paragraph here?

  • @MEKONMESSIN
    @MEKONMESSIN 8 месяцев назад

    Got the track playing perfect just like yours in Visual Studio --but then I embedded the code to my Web Editor and did a preview--Nothing!---what did I do wrong or miss??-- frustrated in Canada**😠👎

  • @kristijanlazarev
    @kristijanlazarev Год назад +1

    nice songs

  • @shubham-sc
    @shubham-sc 10 месяцев назад +7

    autoplay is not working , pls help me

    • @guizmoforlife
      @guizmoforlife 9 месяцев назад +4

      yo bro did you find a solution for it?

    • @shubham-sc
      @shubham-sc 9 месяцев назад

      @@guizmoforlife yeah I got the concept now

    • @klein4459
      @klein4459 9 месяцев назад +3

      The browser does not allow this because it is annoying for the user
      It only works when you make it mute

    • @pencilaturdesk143
      @pencilaturdesk143 9 месяцев назад +3

      did u put it in right? make sure to use W3C it finds errors. Also look for lines of code that are not closed with these signs: also check if u spelled autoplay right or autoplay could be connecting to a different line of code, make sure to close that. God bless u :)

    • @pencilaturdesk143
      @pencilaturdesk143 9 месяцев назад +2

      And i think i found a solution im not sure but, i did
      only use "/folder name/file name" when audio or video or image is not in the same folder as your html. When your audio or video or image is the same folder as your html just do "file name" also make sure your file name has no spaces

  • @SiddhPatel-br7dj
    @SiddhPatel-br7dj 24 дня назад

    Thanks tomorrow is my exam

  • @crektech
    @crektech Месяц назад

    bro why do we add download Link or button to make others download it

  • @esperbeats9011
    @esperbeats9011 5 месяцев назад +2

    autoplay wont work why>?

    • @Muhammed_Atif
      @Muhammed_Atif 5 дней назад

      yeh bro, autoplay doesnt work for me too, really dont know why, i tried using Chat GPT, changed browser and browser settings and it simply doesnt seem to work, everything else works though.

  • @ummezaiba8745
    @ummezaiba8745 6 месяцев назад

    What if we want to load an audio through link...

  • @MoeiraJohnson
    @MoeiraJohnson Месяц назад

    Do I need the app?

  • @ryan_millard
    @ryan_millard Год назад +1

    I used a wav and mp3 file but still can't get it to work. Could someone help me please? I'm using Microsoft Edge.

    • @pencilaturdesk143
      @pencilaturdesk143 9 месяцев назад

      wav and mp3 could not be compatible with your browser or you maybe dont have to file sound or video with the html code folder. Also your line of code could have errors, use W3C to check for any errors that may be in your line of code. God bless u :)

    • @pencilaturdesk143
      @pencilaturdesk143 9 месяцев назад

      only use "/folder name/file name" when audio or video or image is not in the same folder as your html. When your audio or video or image is the same folder as your html just do "file name" also make sure your file name has no spaces

  • @BhartiSingla-ci3zg
    @BhartiSingla-ci3zg 5 месяцев назад

    What to do if I want music in background?

  • @mehovic
    @mehovic 8 месяцев назад

    Can we add captions to audio file??

  • @friendsforever715
    @friendsforever715 3 месяца назад

    why mine doesn't play?

  • @motivationda2067
    @motivationda2067 6 месяцев назад

    bro I couldn't get any audio output on live server

  • @shafiarif4654
    @shafiarif4654 7 месяцев назад

    @BroCodez when I try to play the audio file, my IDM notifies me to download every time I try to play, even though I have downloaded it. What's the issue here? Can you help me on how to solve it?

    • @bartzilla808
      @bartzilla808 2 месяца назад

      is your audio file in a folder?

  • @johnroquesidaya5172
    @johnroquesidaya5172 7 месяцев назад

    bro how to download audio without corrupt?

  • @GiftMthimunye
    @GiftMthimunye 10 месяцев назад

    Let’s gooo

  • @JoashWilliams
    @JoashWilliams 8 месяцев назад

    Bro my autoplay is not working

  • @coldlycode
    @coldlycode Год назад +1

    Thanks Bro!

  • @JuxGD
    @JuxGD Год назад +2

    brocode

  • @techtipsuk
    @techtipsuk 4 месяца назад

    Can these be styled with css

    • @kleinewillem
      @kleinewillem 3 месяца назад

      I had the same question if the controls of the audio could be styled with CSS?

  • @Gametimewithsurya
    @Gametimewithsurya Месяц назад

    BRO IS BRO

  • @user-cf3vy4qt8s
    @user-cf3vy4qt8s 9 месяцев назад

    u sound kinda like a pilot over the intercom
    no offense
    btw i kinda think its cool

  • @JustinUltamit
    @JustinUltamit 2 месяца назад

    random comment

  • @ramanijarrett6855
    @ramanijarrett6855 Год назад

    !