在Hackerrank中运行HTML5音频创建程序时发生断言错误

在Hackerrank中运行HTML5音频创建程序时发生断言错误,html,css,syntax,Html,Css,Syntax,在hackerrank中运行此程序时,出现以下错误 <!DOCTYPE html> <html> <head> <link rel="icon" href="favicon.png" type="image/png"> <title>Destiny</title> <link href="mystyle.css" rel=&qu

在hackerrank中运行此程序时,出现以下错误

<!DOCTYPE html>
<html>
<head>
  <link rel="icon" href="favicon.png" type="image/png">
  <title>Destiny</title>
  <link href="mystyle.css" rel="stylesheet" type="text/css">
</head>
<body>
 // write your code
 <p>regular player</p>
<audio controls>    
   <source src="audio.mp3" type="audio/mpeg">
   <source src="audio.wav" type="audio/wav">
   <source src="audio.ogg" type="audio/ogg">

</audio>   

</body>
</html>
我找不到错误,而且我已经编写了使用HTML5创建audioPlayer的正确语法


请任何熟悉HTML5多媒体的人在您的源标签中给我解决方案,请正确指定音频文件的名称和位置。与hackerrank一样,请查看IDE中的侧栏,它将位于index.html文件的正下方。我想应该是SampleAudio.mp3。 那么在这种情况下,标签就变成了-

source src=SampleAudio.mp3 type=audio/mpeg


还有一件事,不要用它三次,而是用它一次。

我只能在这方面提供帮助

断言计数==3

E断言1==3 我可以让这个断言2==3

使用


也许你会从中得到一些想法。我不能再进一步了。

它不工作了肯定会工作的,请先检查文件名,然后让我知道。如果不是,那么它将是sampleAudio.mp3I尝试了所有方法,但这个错误没有得到解决。
self = <test_webpage.TestWebpage object at 0x7f078f22f0f0>

        def test_indexpage(self):
    
            site = self._index.find_all('audio')
    
            count = 0
    
            for audio in site:
    
                count +=1
    
    >       assert count==3
    
    E       assert 1 == 3
    
    test/test_webpage.py:19: AssertionError
<audio controls>    
   <source src="audio.mp3" type="audio/mpeg">
   <source src="audio.wav" type="audio/wav">
   <source src="audio.ogg" type="audio/ogg">
 Your browser does not support <audio > tag.
</audio>