I cant get passed the main

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

  **Your code so far**

<h2>CatPhotoApp</h2>

<main> 
<p>Kitty ipsum dolor sit amet, shed     
<p>Purr jump eat the grass rip the          couch scratched sunbathe</P>
</main>

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36

Challenge: Introduction to HTML5 Elements

Link to the challenge:

Hi @lungu0732,

The log tells you this: Each of your p elements should have a closing tag.

It is important to read what the log tells you, because you will face these situations often in coding. It makes part of the learning process.

Now, I guess you saw in the previous lessons how is the syntax for a paragraph tag. Let’s watch the issue you have:

<p>Kitty ipsum dolor sit amet, shed 

<p>Purr jump eat the grass rip the          couch scratched sunbathe</P>

You have two issues here. Do you see them?

1 Like

no this is all new to me

The other lessons show this tag. So try to check them again because obviously you didn’t understand how work tags in HTML.

Two types of tags:

  • Paired tags, it is the case for the paragraph tag, It should have an opening tag and a closing one. You have an example already in the code you are working:
<a href="https://freecatphotoapp.com/" target="_blank">CatPhotoApp</a>
  • Unpaired tag, only an opening tag without a closing one.

Also, know that case count. So if you write <p>text</P>, it is a syntax issue, because you open the tag in lowercase and close it in uppercase.

You need to read the class again, you have two different syntaxes, and the second one is the closer one. Your code:

<p>Purr jump eat the grass rip the          couch scratched sunbathe</P>

You can check the third lesson of the HTML part: Inform with the Paragraph Element

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