FAQ: Learn HTML - Intro to HTML - Videos

This community-built FAQ covers the “Videos” exercise in Codecademy’s lessons on HTML.

FAQs on the HTML exercise Videos

Join the Discussion. We Want to Hear From You!

Have a new question or can answer someone else’s? Reply (reply) to an existing thread!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources about HTML in general? Go here!

Want to take the conversation in a totally different direction? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account, billing, Pro, or Pro Intensive? Reach out to our support team!

None of the above? Find out where to ask other questions here!

Other FAQs

The following are links to additional questions that our community has asked about this exercise:

Not seeing your question? It may still have been asked before – try searching for it by clicking the spyglass icon (search) in the top-right of this page. Still can’t find it? Ask it below by hitting the reply button below this post (reply).

How do we know what the appropriate height and width should be? What are the units for these dimensions? And how do these map onto page size?

2 Likes

6 posts were split to a new topic: What is the purpose of Video Not Supported?

Why are the links in quotation marks? I removed them and the webpage works just fine.

1 Like

Question: Why are there quotation marks around the numbers 320 and 240 for width and height in the opening video tag? I removed them from the tag the code still works. Is this simply a coding convention?

Why won’t links from youtube work when I do the video exercise.
Example
</video src=“https://www.youtube.com/watch?v=WFFoMOPQxhg” width=“380” height=“400” controls>Video not supported<//video >

I want to know this as well. For instance in the video portion of the html lesson it requests that I insert a link to the url using the video tag…but it doesn’t show the text having quotation marks, but is it just a given to always use the quotation marks when they are absent?

also, I noticed that in the same video lesson the link they wanted me to insert in the video tag ended with ```

example: https://s3.amazonaws.com/codecademy-content/courses/freelance-1/unit-1/lesson-2/htmlcss1-vid_brown-bear.mp4```

But in the actual text they showed the correct answer as leaving off the ```

This is a link to the lesson. https://www.codecademy.com/paths/web-development/tracks/learn-html-web-dev-path/modules/learn-html-elements/lessons/intro-to-html/exercises/videos-html

If you have any answers to this please let me know. I would greatly appreciate it.

1 Like

What is the difference between the title attribute and the alt attribute when adding a video element to my HTML document?

I would like to know the answer to this question as well, but havent found any answer yet.

Hello,
I can not display the video, in error message it says I did not create a suitcase , here is my code below: video

<video src="https://s3.amazonaws.com/codecademy-content/courses/freelance-1/unit-1/lesson-2/htmlcss1-vid_brown-bear.mp4">
</video>

That would be the correct way, you’re putting the source of the video in the content section, which is wrong.

Can I use one or more <source> tags inside the <video> element?

Hey there!
I tried testing the alternative text for the tag by taking a letter out of the link. Instead of replacing the video window with the text “Video not supported”, the video window is dark grey and gives no error code.

The instructions for the exercise say to wrap the video url in: . The trouble is, the “>” in the opening tag seems to be an error? The video won’t load with the tag typed as instructed:

Only by leaving OFF that second > does it load the video. So the correct instruction would have been for the opening tag to be written: <video (correct?)

If so, it would appear that there is an error in the directions.

In part 15 of the HTML tutorial (Elements and Structures) no matter how I try to do it I can’t get the video to work.

How can we determine the size width and height of a video using <video> tags in html5? What size is considered to be a good size for a video?

The smaller the file, the faster it downloads, but we need to also consider full screen and HD. Ideally, 480p will be quick to download, while 720p, though slower to download will offer better resolution and image quality.

The content of the video will dictate over what level of quality to consider using at the upper end.

If you open YouTube the base size for videos is a good default.

Video/Powerpoint in List links.

How can you include a video or a powerpoint presentation as a link in a list?

You don’t put the myvideo.mp4 (this is totally removed) in double quotation marks, instead you put the video link in there