I need help putting a video into my site

I have been trying to put a video into my site, but my editor will not execute the code. Can you please help?

As far as embedding video in a site, that is fairly simple.

But I don’t understand what you mean by “my editor will not execute the code”. And editor doesn’t execute code. Unless it is part of an IDE. In any case, you should be able to save it to an HTML file and open that in a browser.

Well, I tried to open it in the browser, and it didnt show the video. It showed the box where the video was supposed to be, but not the video itself

It would help to see your code to check if there is an error.

<video <source src="https://youtu.be/4AYmSv35Wlk" controls autoplay loop></video>

That is my code. I dont know what the problem is. I already tried it in the browser.

Go to the youtube link.
Click share.
Click embed.
Copy the code.
Put it in the html.
See the result.

Screen Shot 2020-12-31 at 10.50.43 AM

1 Like

It would also be good to review the link that @kevinSmith gave you because you have a syntax error in your code.

Error is here

Ok. Thank you so much!! I will try that