Basic HTML To HTML 5

Hello,

I am learning HTML .

Why this error is showing . Error Image - Monosnap

Code

<h2>CatPhotoApp</h2>

<main>
  <a href="https://www.freecatphotoapp.com" target="_blank">cat photos</a>

  <img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
  <p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
  <p>
View More
 </p>
</main>

Regards
Abhijeet

Hi @Abhijeet980 ,

You have added a new p element at the end.
The instruction was to nest the existing anchor element inside the new p.

Hey @manjupillai16

Can you explain me in brief or you can edit my code and send me again. Please

You have added the below code at the end:

<p>
View More
 </p>

The objective is to nest the anchor element (a) inside a p element. Nesting -in simple terms- means to place inside.
So, you could add the p tags around the anchor element as follows:

<p> ...<a...> </a> </p>

Hope this helps…I am trying not to print out the exact code as it could be a spoiler.

Hey @manjupillai16

It’s not working I have put this code in end. Image - Monosnap

I don’t think I was clear earlier. The code which you put at the end shouldn’t be there.
Delete that piece of code.

Then think about adding the p tags around the existing anchor element as I mentioned before.
<p> ...<a...> </a> </p>

<p>
View More <a href="https://www.freecatphotoapp.com"> cat photo</a> 
</p>

Hey @manjupillai16

I can’t not understanding because I am a beginner.

wrap first link tag to paragraph!i mean your first image link to your document html

Hey @henz

Which HTML document

area you write your code

there a two element to our document

@Abhijeet980 ,

Don’t worry if it takes some time, let’s try to understand what our code needs to do.

Look at the output screen. You see a pic of a cat and a link (cat photos) above it.

The link is there because of the anchor element (<a>). What the lesson is asking us to do is to add the text ‘View more’ in front of it.
You could do this using the p tags (<p>).
<p>View more</p>

Also, part of the question says to ‘nest’ the (<a>) element inside (<p>) element.
You could simple cut and paste the existing anchor element code inside your p tags.
<p> View more <a>.....</a> </p>

Keep checking the output screen as you add the code to see how it impacts .

Let us know how it goes

Hey @manjupillai16

Can you edit this code and send me again. It will help me

<h2>CatPhotoApp</h2>

<main>
  <a href="https://www.freecatphotoapp.com" target="_blank">cat photos</a>

  <img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
  <p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
  <p>
View More
 </p>
</main>
<h2>CatPhotoApp</h2>

<main>

<!---

  <p><a href="#" target="_blank">cat photos</a></p>---->

  <img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">

  <p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

  <p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

  <p>

    View more <a href="https://www.freecatphotoapp.com">cat photos</a></p>

</main>

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 (’).

1 Like

Hi @Abhijeet980 !

Welcome to the forum!

Please include the link to the challenge you are working on.
You will get more responses to your post if people know what challenge you are working on.

In the future you can just use the Ask for Help button which will include your code and challenge link.

We do not provide answers. If you have an issue please ask about what you’re not understanding.

This lesson is asking you to Create an a element that links to https://www.freecatphotoapp.com and has "cat photos" as its anchor text.
Try resetting the lesson and follow the instructions.

If there’s still an issue post the current code that you have so we can help

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