Tell us what’s happening:
I am having an issue adding a Youtube vid to my code, is not just playing, I have tried to put the embed comments but just not working
Your code so far
<section id="working-methods">
<iframe id="video" width="400" height="315"
src="https://www.youtube.com/embed/YMNxMBjseG8&t?autoplay=1&mute=1">
</iframe>
</section>
Your browser information:
User Agent is: Chrome
Challenge: Build a Product Landing Page
Link to the challenge:
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).
You left part of the URL with the start time but it is before the ? which starts the rest of the query parameters in the URL.
Compare the two:
What you have:
https://www.youtube.com/embed/YMNxMBjseG8&t?autoplay=1&mute=1
What it should be:
https://www.youtube.com/embed/YMNxMBjseG8?t=1s&autoplay=1&mute=1
The ? starts the parameter list and each parameter is separated using &
?t=1s&autoplay=1&mute=1
Hi there, I understand your frustration, I will suggest you to create a section id of your YouTube video, you follow it by the iframe or you can follow this example:
Happy coding…
thanks for taking the time to create the demo. I wish more comments would include things like this. I really think the visual helps.
That’s just a standard post the moderators use to help people format.
We’re volunteers and have personal lives and we do the best we can.
Understood. I hope it was understood that I was giving a sincere thanks though. I know sometimes comments are hard to interpret someone’s tone.