My code is not running so what is the problem or thats wrong in the code

Tell us what’s happening:
Describe your issue in detail here.

  **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>
  <ul>
    <li> Child Element 1 </li>
    <li> Child Element 2 </li>
    <li> Child Element 3 </li>
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Step 6

Link to the challenge:

you have not close the UL tag close it first then it will run

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.


The challenge did not ask you to copy paste the example. The challenge only wants you to add two spaces to three lines in the original code.

The challenge says

In the previous step, you nested the h2 element, comment, and p element within the main element. A nested element is a child of its parent element.

And

Add two spaces in front of the three child elements of main so your HTML is more readable.

So, the challenge tells you to put two more spaces in front of the three child elements. What does it say are the three child elements?

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