Div element with class one

I’m supposed to add a div with class1, never heard of this class before, any help, please…thank you

<div class="container">
  <div class="marker" class="class 1"
  </div>
  <div class="marker">
  </div>
  <div class="marker">
  </div>
</div>
</body>
</html>

When defining one or more classes or ids, they are displayed separately by space " "

<div class="class1 class2 class3"></div>
<div id="id1 id2 id3"></div>

Happy Coding :star_struck:

That isn’t helping, not sure what it is…

Hi,
Please link to the challenge you are doing. It will be much easier to help if we know what you’re stuck on.

Also when pasting code into the forum, format it like the gif shows for easy reading.

https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-css-colors-by-building-a-set-of-colored-markers/step-16

Thank you.

Now please share your code with me so I can see what isn’t working. I think I’ve got an idea what’s going wrong but seeing your code would really help.

<div class="marker" class="class1"</div>
      
      <div class="marker">
      </div>
      <div class="marker">
      </div>
<div class="marker one">

Got it guys, thanks for your time and effor…

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