I need help on step 6

I do not understand this step and I get an error.
“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”.

strong text


It has to do with your indentations. Instead of just doing one space, tab in (or press space 6 times) all the lines in between the start of your <main> tag and the closing </main> tag.

<main>
      <h2>Cat Photos</h2>
      <p>Click here to view more cat photos.</p>
<main>

Try this and you should be golden!

1 Like

hi, u just have to add spaces to the nested childs of the “main” tag so they look indented

the nested child being the h2, the comment and the p tags

I had the same issue, just add 6 spaces from the start of the line for the 2 children.

This worked for me

1 Like