Step 6 - Nesting Elements

Tell us what’s happening:
I nested the elements accordingly but it still gives me an error.
Describe your issue in detail here.
Your h2 element should be below the main element’s opening tag and its opening tag should start 6 spaces over from the start of the line.

It surely starts 6 spaces from the start of the line.

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main> 
    <h2>Cat Photos</h2> 
    <!-- TODO: Add link to cat photos --> 
    <p>Click here to view more cat photos.</p>
  </main>
</body>
</html>
  **Your browser information:**

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

Challenge: Step 6

Link to the challenge:

You can try and reset the lesson and then select all the three elements inside the main tag (using your mouse cursor) and use the key “Tab” to give it the indentation. The Tab key is basically two spaces so it should work after that. If you try and keep checking your code multiple times and it doesn’t passes, then the option to restart your set will show up.

1 Like

Might be a browser issue. Also try deleting the spaces tabbing over instead

1 Like