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

Fam what it mean “my div element should have a closing tag”

  **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"><div 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/102.0.5005.63 Safari/537.36 Edg/102.0.1245.39

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

Link to the challenge:

how many opening div tags do you see?
how many closing div tags do you see?

These should match exactly.

1 Like

but when i match that, it say the new div should be nest within the fist

yes, but that is probably because you didn’t nest them.
To nest means to “place inside”.
It doesn’t mean you should delete a tag.

i see, thank you so much :slight_smile:

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