Completing the task

Tell us what’s happening:
Describe your issue in detail here.
Don’t understand this instruction -

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 so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
<main>  
<!-- TODO: Add link to cat photos -->
      <h2>Cat Photos</h2>
        <ul>
          <li> Child Element 1 </li>
          <li> Child Element 2 </li>
        </ul>
  <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 are not supposed to create ul elements, you have to give two spaces to the front of each element inside main

<html>
  <body>
    <h1>CatPhotoApp</h1>
<main>  
  <!-- TODO: Add link to cat photos -->
      <h2>Cat Photos</h2>
      <p>Click here to view more cat photos.</p>
</main>
  </body>
</html>

What’s wrong with my code. I was expecting the validator to check just for the tags to be there. I have played around with the two and six spaces so far. I guess this is a waste of time trying to figure out “spaces”.

I’ve edited your post for readability. 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.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

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