Mistake that can't be solved for me

I don’t understand what I’m doing wrong :expressionless: its telling me that I have to add the “click here for more cat photos” but I have it exactly copied down
Describe your issue in detail here.

  **Your code so far**

<html>
<body>
  <h1>CatPhotoApp</h1>
  <h2>Cat Photos</h2>
  Click here to view more cat photos.</p>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Safari/605.1.15

Challenge: Step 3

Link to the challenge:

Where is the starting <p> tag?

at the end of “click here to view more cat photos”

</p> is not the same as <p>.

oh rly why does it make it different?

You have an ending tag for the paragraph. But you have to open it first, how do you think would you do that?

An element that has start and end tags can take content (for text elements it’s often just text content). The parser needs to know where the elements start and end.

<h1>Text Content</h2>

You can actually omit the end tag in a lot of cases and it will be auto closed for you.

<p>Test

Becomes this in the browser:

<p>Test</p>

Don’t do this the code is harder to read and it often causes bugs if you are not super careful.

You can however not omit the starting tag

This:

Test</p>

Becomes this in the browser:

Test
<p></p>

thanks brah that helped big time I’m on the next one now

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