Learn HTML by Building a cat photo app step6

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

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

Challenge: Step 6

Link to the challenge:

In the code we have siblings and child elements.

Shen the elements is beside each others they are siblings.

For example the `<p>` is a sibling of `<div>`
<div>Content here</div>
<p>Content here</p>
And here the `<p>` is a child of the `<div>`
<div>
<p>Content here</p>
</div>

To make code clean and readable we add two spaces before the child elements

Wrrong:
<div>
<p>Content here</p>
</div>
Correct:
<div>
  <p>Content here</p>
</div>

And the <ul> code is just for an example you don’t need to add it to your code.

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