How do i add <main> opening tag after the h1 element and <main/> closing tag after the p element

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

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <h2>Cat Photos</h2>
  <!-- TODO: Add link to cat photos -->
  <p>Click here to view more cat photos.</p>
<h1>CatPhotoApp</h1><main/>
<p>Click here to view more cat photos</p><main/>
  **Your browser information:**

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

Challenge: Step 5

Link to the challenge:

…?


You have two closing main tags and zero opening main tags. That can’t be right.

You also have an extra h1 element?

how do i add opening tag after the h1 element and closing tag after the p element

You added an opening h1 tag before the text CatPhotoApp and a closing h1 tag after the text CatPhotoApp.

Same thing with the main. Put <main> where the challenge is telling you to put it, and then put a closing tag after the p element (you have that already).

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

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <h2>Cat Photos</h2>
  <!-- TODO: Add link to cat photos -->
  <p>Click here to view more cat photos.</p>
<h1>CatPhotoAPP</h1><main/>
<p>Click here to view more of cat photo</p><main/>
  **Your browser information:**

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

Challenge: Step 5

Link to the challenge:

please i need help with step 5

i keep trying but i still get it wrong

1 Like

It looks like you have not changed any code from your first post.

You still need to

  1. Delete the extra h1 element you added
  2. Delete the duplicate p element you added
  3. Delete the duplicate closing main tag
  4. Add an opening main tag

Also, you need on fix syntax of your closing main tag.

Compare

with

please can i have an example? i still don’t get it

We do not write code for you. That’s against the forum rules.

Try to fix a few of these things.

What does your code look like if you

You should get something close to the starting code:

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

how do i do step 5. i still have it wrong

1 Like

What have you tried. I still cannot write the answers for you.

i got it already. thank you

1 Like

Im having the same trouble… what was the solution?

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

1 Like

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