Help question five

Tell us what’s happening:
Describe your issue in Identify the main section of this page by adding a opening tag after the h1 element, and a closing tag after the p element. I put the code but dont understand where to put it here.

  **Your code so far**

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

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

Challenge: Step 5

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

A refresher on what an element is might help you understand better.

“An HTML element is defined by a start tag, some content, and an end tag.”

1 Like

Elements opening/closing tags should be nested within each other. Think of on of those nested dolls. They can stand on their own, or fit around another doll. BUT you can’t mismatch them (i.e. put an outer-doll top on an inner-doll bottom).

To illustrate this point I’ll use numbers for elements. Here are some working examples:
<1> content </1>
<1><2> content </2></1>
<1> content <2> content</2> <3>content</3> </1>
Here are some not working examples:

This all might be overly convoluted, but I’m hoping to explain without giving the answer away.

I don’t understand your explanation

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