This forum is now read-only. Please use our new forums! Go to forums
2.2 The Video Element
For this code:
<video controls="controls">
<source src="http://bit.ly/w3mp4vid">
</video>
I get this error:
Oops, try again.
Whoops! The source of your video is not the correct URL.
The task is:
Write a video tag with the source of “http://bit.ly/w3mp4vid“. Don’t forget to specify the controls=”controls” attribute otherwise the controls will not show up!
So what am I doing wrong?
(Same goes for the section 2.3 and 3.2)
Answer 515c0437d883f8eab0001566
this code will pass (step2):
<video controls="controls" src="http://bit.ly/w3mp4vid"> </video>
Description:
I guess it’s just a ‘bug’ in this tutorial.
“src” attribute in < video >
tag will works as well,
but with the embedded < source >
tag, you can have different format of the video file to tackle the compatibility issue with different browsers.
Reference : http://www.html5rocks.com/en/tutorials/video/basics/#toc-markup http://www.w3schools.com/html/html5_video.asp
Answer 513fd26af67b7dd8060009cd
I found the solution - one has to include the src remark in the video element, so before the /video.
Answer 5128c0b6bcf70e7c01001665
Answer 5128c4ce3150fc5269001894
I answered with this code:
video controls=”controls” source src=”http://w3schools.com/tags/movie.ogg“ type=”video/ogg” source src=”http://w3schools.com/tags/movie.mp4“ type=”video/mp4”
And, still, I got this error message:
Whoops! The source of your video is not the correct URL.
Maybe with a little help… Thanks in advance.
Answer 513dd3cc3c9a0e002f00678f
You need to use this code to pass
<video controls="controls">
<source src="http://bit.ly/w3mp4vid" type="video/mp4">
<source src="http://bit.ly/w3oggvid" type="video/ogg">
Your browser does not support the HTML5 video tag.
</video>
The trick lies in specifying the correct file type in the url like below source src=”http://bit.ly/w3**mp4**vid“ type=”video/mp4“ source src=”http://bit.ly/w3**ogg**vid“ type=”video/ogg“
5 comments
of course we tried it, which is why this issue exists and is still not resolved.
Aleksandrs, I think problem lays in correctness tests issues not with code that was sent by Xavier. It is working - it shows movie and play it.
yes, that is true and you are correct! =)
Aleks, so maybe we shall repair his course? Is this possible? I have never tried making codeacademy’s course so I don’t know.
I think only the Codecademy team can change the courses and the only the course creator can modify his/hers correctness of the tests for successful passing.
Answer 513e25fdb92aa9a03f001557
Same problem as above users, any fix?
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
3 comments
It works, thanks!
it similarly passes for step 3 as well. Thanks ahchien!
Great to be able to help, You’re welcome =)