Hello folks, I am stuck on step 4. How to fix it? Thank you

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

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

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

Challenge: Step 4

Link to the challenge:

1 Like

HI @Mryanto97 !

Welcome to the forum!

I would reset the lesson.

Make sure the comment tag is above the p element.
Not next to it.

Make sure you have the appropriate amount of spaces in your comment tag.

Look at the sample they gave you:

<!-- TODO: Remove h1 -->

You see how there is a space before TODO and a space after h1?

You need to have correct spacing in the comment tag to pass the lesson

1 Like

Thank you for replying my text. I have rechecked but still doesn’t work. thank you

Please post your new code for us to see

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

<! Click here to view more cat photos.<!--Click here to view more cat photos--> TODO: Add link to cat photos--> 

here it is

I don’t see your paragraphs tags.

It looks like you got rid of them here

This is incorrect syntax

I would reset the lesson.

Make sure not to alter the paragraph element at all.
You are going to add your answer above the paragraph element.

<p>Click here to view more cat photos.</p>

Make sure to only add one comment tag with this text

TODO: Add link to cat photos

Remember to add the appropriate spaces before and after the text like sample:

<!-- make sure to follow the spacing or else the test won't pass -->

If you need extra help with the spaces in the comment tag, then reread my comment from earlier.

Once you do that, then the test will pass.

Hope that helps!

Você está com dois elementos

apague o que esta ao lado do comentario

Alright. I will check it again. Thank you so much

Good news is that you are close to solving it.

You just have to fix those small details in order to pass. :slight_smile:

OMG still confuse with this one

Please share new code

<p>Click here to view more cat photos

<!Add link to cat photos-->

<!-- TODO: Remove h1

You are missing the </p> here

This is the incorrect syntax here

Also, remember that the instructions say to add your comment above the paragraph like I showed you here

But you keep placing it below like this

Reset the lesson.

Your starting point should be this:

Make sure to start there and not alter the paragraph element.

Then add your comment tag with the correct text of

Remember that the correct syntax for comment tags is this

<!-- ADD TEXT HERE -->

You should only be adding one line of code.
If you are adding more lines of code or changing things you are not supposed to then it won’t pass.

Hope that helps!

I didn’t fine what is the problem here :

<p>Click here to view more cat photos.</p>

<!-- TODO: Add link to cat photos </p>

TODO: Add link to cat photos -->

You have added two lines of code

But you are only supposed to add one.

Also, the comment tag is supposed to be above the p element but you keep placing it below.

Please reread through my last post more carefully.

I show you where to write your code and the proper syntax for the comment tag.

should I start with this


Here is your starting point

You place your comment tag right where it says to

hheheheh…yes I’ve fixed it

<!--TODO: Add link to cat photos --> <p>Click here to view more cat photos.</p>

I should understand the flow, right?

Yes that answer does pass the tests.

That is the correct way to add a comment.

For future lessons, make sure to pay really close attention to details because that is an important part of programming.

Glad you figured it out :+1:

1 Like