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

Hi fellow code-heads,

I can’t for the life of me see what is incorrect with my code below. :thinking:

  • Hint Your html element should have a closing tag.*

As my code has a closing tag I am completely stuck and would greatly appreciate any help!
TIA
John


**Your browser information:**

User Agent is: <code>Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0</code>

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

**Link to the challenge:**
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-css-colors-by-building-a-set-of-colored-markers/step-1

I can’t really see what you coded but I just did this exact challenge. Just make sure you have a proper heading and that you are following instructions. This website also helped me: HTML html tag

Hope that helps!

Hi Cristine,
Many thanks for your swift reply and the link. My html is exactly the same as the link.
I have a closing tag after the first html >and another after “en”> but for some reason I can;t post it in full!

<!DOCTYPE html <html lang="en" Cheers, John John

**Your browser information:**

User Agent is: <code>Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0</code>

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

**Link to the challenge:**
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-css-colors-by-building-a-set-of-colored-markers/step-1

You need to insert your code using the format button </>. Paste your code between the lines it gives. We cant help if we cant see your code

<!DOCTYPE html>
<html lang="en">

Here’s my code and thanks for your help in posting @ Cody_Biggs

I think you need to put an end code the html. Put it in the last line. </> @code-and-chips

You need a closing html tag. Most elements will need a closing tag along with the opening tag. Which is usually done with a /. so it would be </html>

Unfortunately, putting an end code in the last line doesn’t work either.

<!DOCTYPE html>
<html lang="en"</>

Hint

Your html element should have an opening tag with a lang attribute of en.

The link you gave me shows the html exactly as in my previous post, so I am totally confused as to why it doesn’t work.

</> is not valid html. You need to put the element you are closing inside the closing tag.

</html>
1 Like

@ Cody_Biggs I tried your suggestion , but that also failed. I just got the same hint as before.

<!DOCTYPE html>
<html lang="en"</html>

You are missing the > that comes before the closing tag

Many thanks Cody_Biggs that did the trick and saved my sanity!

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