Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Desmond Dallas
Desmond Dallas
6,985 Points

Help with linking video to HTML page

Can anyone tell me what is wrong here please. The first video appears (iframe) but not (video id). However I the play button etc do appear.

<iframe width="420" height="315" src="https://www.youtube.com/embed/XGSy3_Czz8k"> </iframe>

<div style="text-align:center"> <button onclick="playPause()">Play/Pause</button> <button onclick="makeBig()">Big</button> <button onclick="makeSmall()">Small</button> <button onclick="makeNormal()">Normal</button> <br><br>

<video id="video1" width="420"> <source src="1Website.video.MPG4" type="video/MPG4"> <source src="1Website.video.MPG4" type="video/MPG4"> Your browser does not support HTML5 video. </video> </div>

1 Answer

Steven Parker
Steven Parker
229,783 Points

The "source" tag seems to be duplicated but that in itself would not explain the issue.

The first video points directly to a "YouTube" URL, but the second one is pointing to a local resource. This might indicate that the file has a different name than the one specified, or is located in a different folder.

To more completely analyse this issue would require seeing the local environment. You can make a snapshot of your workspace and post the link to it here.