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

Tell us what’s happening:
It keep asking me to put the new div inside the other div. and when I do so it tells me I need a opening tag. I have tried it 3 different ways. and each time it gives me a different reason its wrong, but no helpful hints to find the solution.

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>
  <body>
    <h1>CSS Color Markers</h1>
      <div class="container", class="marker"></div>
  </body>
</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/105.0.0.0 Safari/537.36

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

Link to the challenge:

I would restart the step to get the original HTML back. You want to put a completely new div element inside the existing div element. How do you make a div element? The same way you made the existing div element, with both an opening and closing div tag. And then you add the class to the opening tag.

(post deleted by author)

wrong syntax

you need to add a “div” element with a class of “marker” within already existing “container” div, happy learning :slight_smile:

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