Building a tribute page and trying to embed video


#1

Hi everyone, I’m working on the Tribute Page project and I have a few questions. I’m trying to embed a couple youtube videos and am having a lot of trouble. Can someone tell me what is wrong with my code?:

<iframe width="240" height="240" source src="https://www.youtube.com/embed/g1UV8FGnToo" type="video/mp4"

I’m using the required video html tags when trying to embed.

Also, how do I double space everything in html? Particularly between list items.

I’ve just began to learn how to code and any help would be great.


#2

Well you can always try the code YT provides for embedding:

<iframe width="560" height="315" src="https://www.youtube.com/embed/dZX6Q-Bj_xg" frameborder="0" allowfullscreen></iframe>

Unless you are and it’s still not working.

As for “double spacing” you can try messing around with padding or margins between your li’s. Something like li { margin: 10px 0; } would put 10 pixels of spacing on the top and bottom of each list item but adds no spacing to the left and right. You can use percentages too: li { margin: 2% 0; }