Build a Video Compilation Page - Build a Video Compilation Page

Tell us what’s happening:

it is showing that the main element should be the only body element as an error, how should i fix it?

Your code so far

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

<head>
<meta charset="utf-8">
<title>Video Compilation Page</title>
</head>
<body>
<main>
<h1>Front End Web Development</h1>
<p>Front End Web Development involves designing and building user interfaces of websites using HTML, CSS, and JavaScript. It focuses on creating visually appealing, interactive, and user-friendly websites. Front End developers ensure accessibility, performance optimization, and adherence to web standards, blending creativity with technical expertise.</p>
<section>
<h2>HTML</h2>
<p>HTML, or HyperText Markup Language, forms the backbone of web pages by defining their basic structure and layout. It uses a series of elements to display text, images, lists, tables, and other static content on a web page.</p>
<iframe width="320" height="240" src="https://www.youtube.com/embed/kUMe1FH4CHE" title="HTML Crash Course For Absolute Beginners" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</section>
<section>
<h2>CSS</h2>
<p>CSS, or Cascading Style Sheets, is used to control the visual presentation of HTML elements on a web page. It allows for customized styling, including colors, fonts, layouts, and spacing, making websites visually appealing. CSS also supports responsive design, ensuring web pages look good on all devices.</p>
<iframe width="320" height="240" src="https://www.youtube.com/embed/OEV8gMkCHXQ" title="CSS Crash Course For Absolute Beginners" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</section>
<section>
<h2>JavaScript</h2>
<p>JavaScript is a programming language that adds interactivity to static web pages, enabling dynamic content updates, form validations, animations, and responsive behaviors based on user interactions and events.</p>
<iframe width="320" height="240" src="https://www.youtube.com/embed/PkZNo7MFNFg" title="JavaScript for Beginners" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</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/137.0.0.0 Safari/537.36

Challenge Information:

Build a Video Compilation Page - Build a Video Compilation Page

Your solution works from my end. Please try one of the following steps to move forward.

Click on the “Restart Step” button and force a refresh of your page with CTRL + F5 then try to paste the code in again.

or - Try the step in incognito or private mode.

or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

or - Ensure your browser is up-to-date or try a different browser.

I hope one of these will work for you.

unfortunately, it still isnt working , this is the error shown: 2. Your main element should be the only child of the body element

when I test your code it passes

Hi Buddy, Your Solution works for me as well.

You can share your error msj, we will see and help you.

  1. Your main element should be the only child of the body element