Learn CSS Colors by Building a Set of Colored Markers - Step 10

Hello,
I don’t see it. When i put a closing tag like this

I receive this error: You should nest your new `div` element within the `div` with the class `container` . When i do it like this:
I receive this error: Your new `div` element should have a closing tag.

I don’t see it.
Thanks for your help.

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>Colored Markers</title>
    <link rel="stylesheet" href="styles.css">
  </head>

<!-- User Editable Region -->

  <body>
    <h1>CSS Color Markers</h1>
    <div class="container">
      <div class="marker">
    </div>
  </body>

<!-- User Editable Region -->

</html>
/* file: styles.css */
h1 {
  text-align: center;
}

Your browser information:

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

Challenge Information:

Learn CSS Colors by Building a Set of Colored Markers - Step 10

Hi and welcome !

Here:

You must add the closing tag. Like this:
</div> —edited by mod—

1 Like

Every opening tag <div> needs a matching closing tag </div>

Please try not to share complete solution code (I know it can be tricky in some situations to explain without showing)

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

1 Like

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