Tell us what’s happening:
I am prompted to add a div element with a class of canvas in the body tag. My code looks like this
and it is placed inside a correctly opened and closed body tag (which worked before), but I keep getting error message saying: “your code should have a div element”
Your code so far
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Rothko Painting</title>
</head>
<body>
<!-- User Editable Region -->
<div class="canvas"></div>
<!-- User Editable Region -->
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0
Challenge Information:
Learn the CSS Box Model by Building a Rothko Painting - Step 6
Hello and welcome to freeCodeCamp.
Your code is passing on my side. Try clearing cache, blocking anything that may stop your code from passing or clearing browser history. If none of that works, try restarting your device.
Hi, thanks v much for the kind welcome message and for your reply.
I have tried resetting the lesson, clearing the caché and restarting my browser, as well as logging in and out. Unfortunately the error persists. 
I’m not sure what to do now
Did you try disabling any extensions?
If that doesn’t work try using a different browser.
1 Like
I actually didn’t know what you meant by that, but I see now you meant extensions.
I switched to Chrome and it worked right away. I do prefer using firefox, so I will disable the few extensions I have and hope that will do the trick. Otherwise I’ll just return to Chrome as that seems to have unblocked it.
Thank you for your help!
3 Likes
You’re welcome. Happy coding!