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

Tell us what’s happening:
I need to add another div element within the existing div. The original div element was container and I need to add div element with class marker.

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html lang="en">
  <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">
  <h1>CSS Color Markers</h1>
  <div class="container">
  <div class="marker">
/* 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/103.0.5060.134 Safari/537.36 Edg/103.0.1264.71

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

Link to the challenge:

1 Like

figured it out after awhile! I won’t post the answer but would someone be willing to explain why we nested the div element within the other one then had two closing elements one after the other? I guess I am wondering why we opened and closed one within another element and not make a separate one after the closed div element if that makes sense…

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