Hello! I’m having a problem with this task:
To apply the class’s styling to the div element, add a class attribute to the div element’s opening tag and set its value to menu .
My code is:
< div class=“menu” >
Your code looks correct to me, but you have an extra space after the < bracket. If you added the space to make the code show on the post, please post your full code.
Also when you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read. You can also use the “preformatted text” tool in the editor (</> ) to add backticks around text.
Your solution works from my end. Please try one of the following steps to move forward.
Click on the “Restart Step” button and force a refresh of your page with CTRL + F5 then try to paste the code in again.
or - Try the step in incognito or private mode.
or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.
or - Ensure your browser is up-to-date or try a different browser.