As far as I know, this might be wrong.
PS4 supports HTML5, and also WebGL. But do not support any type of WebAudio, and there are no codecs for webm, ogg, aac, mp3 or whatever.
Regarding PS5 I do not hink there are any verification of the specs. But if they will have an easy way of uploading games to some store and a better browser support than the PS4 I think it will be supported.
( dungsmile4242 please rename the subject so people can see what you are asking about!)