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

Tell us what’s happening:
Describe your issue in detail here.

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 red">
      <div class="marker green">
      <div class="marker blue">
/* file: styles.css */
h1 {
  text-align: center;

.container {
  background-color: rgb(255, 255, 255);
  padding: 10px 0;

.marker {
  width: 200px;
  height: 25px;
  margin: 10px auto;

.red {
  background-color: rgb(255, 0, 0);

/* User Editable Region */

.green {
  background-color: rgb(#00FF00);

/* User Editable Region */

.blue {
  background-color: rgb(0, 0, 0);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36 Edg/117.0.2045.60

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

Link to the challenge:

Welcome to the community.

You have made a good attempt.

Remove the rgb and brackets and it will pass for you, I believe.

rgb is a different way of presenting the colors.

I had to learn all of this too.

Keep up the good progress!

1 Like

Hello, here you just put rgb color type

But this step is telling you to put hex color type.

We just use # before starting and then we just put three values.

There first one is red .
Second one is blue
Third one is green.
For example


Hope you understand.

As stated in my earlier post, it is just a matter of removing the rgb and the parenthesis.

Great progress! :slight_smile:

Here is a great article from the FCC News that may help understand the colors a bit better. It has examples of the various styles: hex, rgb, hsl.
I found it to good for reference.

Happy coding!

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