Learn HTML by Building a Cat Photo App - Step 5

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

  **Your code so far**
<html>
<body>
  <main>
  <h1>
  <main>CatPhotoApp</h1>
  <h2>Cat Photos</h2>
  <!-- TODO: Add link to cat photos -->
  <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/103.0.0.0 Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 5

Link to the challenge:

Hi! Welcome to the forum!

Please try to describe your issue in more detail in the ‘tell us what is happening’ section in future, you can write your own text in this section. It makes helping much easier.

You only need one main element opening tag. You’ll need to remove one of them to pass the lesson.

This is an element.

<p>Hello</p>

It is made of an opening tag <p>, and a closing tag </p>.

So if the main element needs to be after the h1 element, it needs to have its opening tag after the h1 elements closing tag.

  1. the main should be below the h2 element
  2. h2 element should be six spaces from the start of the line
  3. add the same six spaces to the <!–TODO and p element

Hi,
This isn’t correct. The main needs to be below the h1 element.

Code indentation is not important at this stage. That will come later.

Please check the lesson instructions carefully so you do not give misleading information to other forum users.

oh yes sorry the main should be below the h1 element made a mistake

1 Like

It’s okay! They’re easy to make.

Just check the lesson link before helping other users, even if you’re sure you can recognise the lesson by the users code alone.

Then you’ll be sure you’ve got the right advice on hand. :smiley:

ThankYou App

Thank you

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