0

Provide error message for audio tag in html5

Is there any way to provide error message when src (source audio file) is invalid for audio tag in html5 ? (Built in and without using javascript) My browser supports audio tag perfectly but I want to set a wrong src purposely to get error like "img" tag and its attribute "alt" to show a message instead of missed image.

3rd Jan 2017, 11:23 AM
Mojtaba Mahichi
Mojtaba Mahichi - avatar
4 Answers
+ 3
Something like <audio src="music.mp3">Your browser does not support <audio> tag.</audio>?
3rd Jan 2017, 11:02 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 1
My browser supports audio tag perfectly but I want to set a wrong src purposely to get error like "img" tag and its attribute "alt" to show a message instead of missed image.
3rd Jan 2017, 11:23 AM
Mojtaba Mahichi
Mojtaba Mahichi - avatar
0
nothing, i think
3rd Jan 2017, 8:50 AM
Юра Горбунов
Юра Горбунов - avatar
0
I don't think so
3rd Jan 2017, 10:11 AM
Abhishek Chatterjee
Abhishek Chatterjee - avatar