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

Tell us what’s happening:
This is my code so far it will not pass. I do not understand what is wrong! I have checked other projects and that is the way they start and those codes are working just fine.

Your code so far


<!-- User Editable Region -->

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

<!-- User Editable Region -->

Your browser information:

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

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

Link to the challenge:

The html element is not self-closing. It needs both an opening and closing tag because you can put stuff inside of it.

If you want to show us your updated HTML then you can paste it in here using the triple back tick technique.

On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key. You may also be able to use Ctrl+e to automatically give you the triple back ticks while you are typing in the this editor and the cursor is on a line by itself. Alternatively, with the cursor on a line by itself, you can use the </> button above the editor to add the triple back ticks.

1 Like

If you need an example, then look at how you did this exact thing in step 1 of the Cafe Menu course.

I put closing tags and it still does not work how about giving an example with your answer that would help a lot. I have tried it with the </> on the end and still does not work

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

I see an opening html tag here, but I don’t see a closing html tag. Do you know what a closing tag is? Did you revisit step 1 of the Cafe Menu? Actually, I guess you’d want to look at step 2 of the Cafe Menu to see the answer for step 1.

1 Like

Still does not work i did revisit step 1 of the cafe menu

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

The html element is not self-closing because you can put other elements inside of it. Thus, the html element requires a separate opening and closing tag. Do you know what a closing tag is? You have created a ton of closing tags in the previous courses.

ok I got it finally thanks for the help

1 Like

I’m having that same problem and I could not fix it

can you please tell me how you fix it?

Welcome back to the forum @ranisbhakta

Please start a new topic describing the issue.

<--- it just wants you to add the closing html at the end < /html >

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