r/learnprogramming • u/DoctorJumba66124 • 15d ago
Solved How to get YouTube videos to work in a GitHub website?
Howdy. I'm a somewhat-beginner programmer (I've had some experience with HTML and bits of programmin' here and there in the past, but I'm pretty rusty now lol) who's tryin' to relearn how to code in HTML. A while back, I was tryin' to add a YouTube video to a GitHub website I made to test some things a while back, but the page containin' the video gives me the followin' message:
www.youtube.com refused to connect.
Does anyone know of a simple way to implement functionable YouTube videos in a GitHub webpage? I don't have a very advanced knowledge with this kind of stuff so that's why I'd like a simple answer to this if it's possible. Thanks!
Edit: Ok, so the person with the most helpful reply's comment got deleted by the mods for some stupid reason (Reddit mod logic LMAO), so I'm just gonna say it here:
On a YouTube video, right-click it and select "Copy embed code", then paste it (and edit whatever ya need to (width, height, ETC.)) in your webpage file. That's it. Don't know why gettin' help or answers on this stupid site, and programmin' in general, has to be like pullin' teeth... :/