Build a Video Compilation Page - Build a Video Compilation Page

Tell us what’s happening:

I’ve followed instructions correctly but it still says that it’s wrong.

Your code so far

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>Video Compilation Page</title>
</head>

<body>
<main> 
    <h1>Games Video Compilation</h1>
    <p>3 of the most popular games are Roblox, Minecraft, and Fornite. See how they compare.</p>

    <section>
        <h2>Roblox</h2>
        <p>Roblox was launched in 2007, and has 64 million players every month, with an estimated total 178 million accounts on the platform.</p>
        <iframe src="https://www.youtube.com/watch?v=eAvXhNlO-rA&pp=0gcJCdgAo7VqN5tD" title="Roblox gameplay" height="320" width="540"<iframe>
    </section>

    <section>
        <h2>Minecraft</h2>
        <p>Minecraft is a game made up of blocks, creatures, and community. You can survive the night or build a work of art – the choice is all yours.</p>
        <iframe src="https://www.youtube.com/watch?v=MmB9b5njVbA" title="Minecraft gameplay" height="320" width="540"</iframe>
    </section>

    <section>
        <h2>Fortnite</h2>
        <p>Fortnite is an online video game and game platform developed by Epic Games and released in 2017.</p>
        <iframe src="https://www.youtube.com/watch?v=wGB1aLDR2Es" title="Fortnite gameplay" height="320" width="540" </iframe>
    </section>
</main>
</body>
</html>

Your browser information:

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

Challenge Information:

Build a Video Compilation Page - Build a Video Compilation Page

Hi there, welcome to the community! :waving_hand:
Your code has a few issues that need to be fixed:

  1. your iframe closing tag isn’t written correctly.
  2. you’re missing some syntax in the iframe element make sure to review it carefully.
  3. use embed links instead of regular YouTube watch URLs when embedding videos.

Hope this helps!

Hey HenryWin, you need to fix the iframe tags by adding the missing closing bracket (>) in the opening tags. Also, use the YouTube embed URLs like YouTube instead of the regular watch URLs. For example, replace watch?v=eAvXhNlO-rA with embed/eAvXhNlO-rA. Once you fix these, your videos should display correctly.