Hello! Need assessment for HTML embedding tasks:
Github Pages:
Hello @VladimirK
you doing great well done as usual just a little note
when a browser does not able to play the audio or video then there 2 cases
so displaying that Your browser doesn't support <abbr title="HyperText Markup Language">HTML5</abbr> audio.
so it’s not html5 audio it just audio that the browser has not the codec to play it
i notice there a restaurant icon for the map inside your task does that mean you inviting us for dinner
hope that help and have a nice day
Edit : i notice that this html5 video and audio was in the lesson so not sure if it was right not let me ask @mikoMK for his opinion about that
not sure if change the error message would be better like Cannot play back the file. The format is not supported
Thank you for fair remark!
I saw Your browser doesn't support HTML5 video/audio
in embedding lesson.
i notice there a restaurant icon for the map inside your task does that mean you inviting us for dinner :joy:
Yes! Eat donuts and then play some counter strike
Hi to both of you
Browsers tend to just ignore tags they don’t know and just displays the text between the start and end tag. Therefore it is recommended to use such a fallback text.
From <audio>
| MDN (same text also on <video>
):
The content inside the opening and closing
<audio></audio>
tags is shown as a fallback in browsers that don’t support the element.
It doesn’t even have to be old browsers. Think of a feed reader app that displays blog posts and doesn’t fully understand the HTML standard.
Cheers!
Michael
Thank you! So
is better than
Because first example have fallback text?
Right?
Both examples is from audio | MDN.
Nope. I commented out all parts that would be ignored by old browsers. What’s left is the fallback text in both examples:
<!-- <audio controls> (ignored) -->
<!-- <source src="myAudio.mp3" type="audio/mpeg"> (ignored) -->
<!-- <source src="myAudio.ogg" type="audio/ogg"> (ignored) -->
<p>Your browser doesn't support HTML5 audio. Here is
a <a href="myAudio.mp3">link to the audio</a> instead.
</p>
<!-- </audio> (ignored) -->
<!-- <audio
controls
src="/media/cc0-audio/t-rex-roar.mp3"> (ignored) -->
Your browser does not support the
<code>audio</code> element.
<!-- </audio> (ignored) -->
The <source>
element was introduced together with <audio>
and <video>
and is therefore also unknown by old browsers.
Cheers!
Michael
i think he meant to ask that provide link to the audio file with the error message is much better than just display the browser does not support … error message only
unless if i miss understand him
Time will tell who’s right
But I agree, linking to the file is a better practice
Yes, justsomeone! You understand me.
Thank you guys for explanations!
you very welcome
let us go and get some donuts do not worry @mikoMK
@VladimirK is inviting us
sounds great