Product Landing Page - Build a Product Landing Page

Tell us what’s happening:

hey everyone , can someone tell me what wrong with my code i did everything right but the problem is the video

Your code so far

    <section id="video" class="section">
        <h2>Watch the iPhone 15 in Action</h2>
        <iframe
        id="video"
        height="315"
        src="https://www.youtube.com/embed/VFW0U-QMLIs"
        frameborder="0"
        allowfullscreen
      ></iframe>
    </section>
<!-- file: index.html -->

/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0

Challenge Information:

Product Landing Page - Build a Product Landing Page

  • You should have a video or iframe element with an id of video.

  • Failed:Your #video should have a src attribute.

Hello!
It appears you have used the id = "video" twice.

This is not correct. id must be unique each time.

Suggest removing it from the section or change the section id to a class maybe.

I hope this helps you.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.