Help with step 6 in HTML cat lesson

Tell us what’s happening:
I cant seem to find the problem in this step. I added the

  • milk
  • cheese
  • fish

but it says ’ Sorry, your code does not pass. Hang in there.


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.

  **Your code Testso far**
  <h2>Cat Photos</h2>
  <!-- TODO: Add link to cat photos -->
  <p>Click here to view more cat photos.</p>
    <li> milk</li>
  **Your browser information:**

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

Challenge: Step 6

Link to the challenge:

Is it indented the correct amount? It doesn’t look like it.

The instructions say you should add two spaces at the beginning of these three lines:

but i write same code .but it again shows test case is not accepted … plz help me… i want step 6 answer

In your code above, do you need the <ul> and all the internal items?
I went to challenge and inside the <main>, there is only the <h2>, the comment and the <p>.
When I indented all three it passed.

Remove the <ul> and ident as I mentioned, it should work.

Thanks bro, i thought i was gonna get stuck forever on just question 6 lol. All i did was remove the

    lines and added 2 spaces for every line between the and . It finally worked.

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