Tuesday, March 27, 2018

WebDesign: Inserting Audio (W12-P3) [VID]


To insert audio into a web page, you use the audio element (in HTML5).

The audio element, like the image element, which allows for the inclusion of audio in a web page.

  • src attribute (for audio): an attribute within the the audio element that indicates the location of the audio file to be played.
  • Other common attributes in audio element are autoplay, controls, loop, and preload.


What does this look like in some actual coding? How do you insert audio exactly?





If you are curious, for more info see the W3schools audio page. Especially see the green “Try It Yourself” buttons and try it yourself if you are interested.




Share this post with others. See the Twitter, Facebook and other buttons below.
Please follow, add, friend or subscribe to help support this blog.
See more about me at my web site WilliamHartPhD.com.






No comments:

Post a Comment

Thank you for your comment.
Your comment will be reviewed.
If acceptable, it will be posted after it is carefully reviewed. The review process may take a few minutes or maybe a day or two.