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

Tell us what’s happening:
Describe your issue in detail here.
Im aware the second div is supposed to be in the first one? What could be the problem?

  **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 <marker"> 
  </div>
</body>
</html>
/* file: styles.css */
h1 {
text-align: center;
}
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15

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

Link to the challenge:

Hi @karlamorales200160

What it means by “inside” the first one is that you have to put it in between the opening tag and the closing tag

<div class="cats"      this is not inside >
    THIS is inside the div element
</div>

Its not inside the div element if you put it inside the angle bracket…

Hope that helps!

 <div class="container"
     class="marker"
    </div>

its asking me to place opening tags on the second div?

Nonononon you got it wrong.

This is the question

Next, within the div , add another div element and give it a class of marker .

The question asks you to ADD ANOTHER div ELEMENT (not tag) meaning that you have to create another set of opening tag and closing tag.

You place that element inside another element that is already given in the code.

You do NOT place any of the tags inside another tag.

Do not add tags inside tag.

This is invalid HTML

<div class="" <div =class=""> >
</div>

Notice the difference when I say element and tag.

An element consists of one or two tag. A tag is part of an element.

Hope this clears out the misundertanding @karlamorales200160.

If you have any question feel free to ask and provide the code to your latest attempt. :pray:

`<div class=“” <div =class=“”> >

so this is the correct form?`

Nope, like i said. Don’t put a tag inside another tag.

You put a div tag inside another tag.

I also mentioned that “This is invalid HTML”.

Please refer to this code instead

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