Early on our planning, we wanted to add a knocking on the door audio for our website. The idea was to have a first page with audio and once the user click on the page they will go straight to the main page.
We asked help from our tutor Matt and he recommended to look up the audio tag for HTML 5.
I was able to grab a sample tag from w3schools (www.w3schools.com/html/html5_audio.asp), which also reminds me that this site was mentioned in the CSS guide video from stream. The audio was download on www.freesfx.co.uk
We simply copied the tag and paste this to our index page.
<audio controls>
<source src="filename" type="audio/mpeg">Your browser does not support the audio element.
</audio>
Another change we did was to have the audio on auto play and asked Matt how to take off the audio bar player, which is simply just to take out controls on the tag.


No comments:
Post a Comment