Tell us what’s happening:
- Your section elements should each have an h2 within them.
I have included the h2 in every section element but the code is still refusing to pass!
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Build an Event Flyer Page</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<img src="https://cdn.freecodecamp.org/curriculum/labs/event.jpg" alt="various coloured flags hanged on horizontal strings">
<h1>Color Festival</h1>
</header>
<hr>
<main>
<section>
<h2>Join us for the 6th Edition of Color Festival</h2> <p>When:<time datetime="2025-11-30"> November 30</time> Where: Rugo Park</p>
</section>
<hr>
<section class="fest-spec">
<h2>Festival highlights</h2>
<ul>
<li>Mixing colours</li>
<li>Drawing</li>
<li>Painting</li>
</ul>
<h2>Special Guests</h2>
<ul>
<li>Mark the brush</li>
<li>Ben the paint</li>
</ul>
</section>
</main>
</body>
</html>
/* file: styles.css */
body{
padding-top: 50px;
padding-bottom: 50px;
margin-top: 0;
margin-bottom: 0;
margin-right: auto;
margin-left: auto;
width: 100vw;
min-height: calc(100vh - 100px);
}
hr{
width: 80%;
}
section{
width: 80%;
}
.fest-spec{
display: inline-block;
width: 100%;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
Challenge Information:
Build an Event Flyer Page - Build an Event Flyer Page