Introduction to HTML5 Question

How do I make the main element should have two paragraph elements as children?

My code so far


<h2>CatPhotoApp</h2>
<main>
<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>
</main>

Your browser information:

2 Likes

Your β€œmain” element has only one β€œp” tag! :vulcan_salute:

wdym? Can you show me a correct example so I can understand better.

1 Like

The question is asking you to add another child element to the main element. The code above only has 1 β€œp” element. :vulcan_salute:

<main>
<p> 12345 </p>
<p> 67890 </p>
</main>
1 Like

I think something like this should work :blush: By adding a 2nd set of <p></p> tags within your <main> section

<main>
<p>First</p>
<p>Second</p>
</main>
1 Like

Thanks for your help.

1 Like

Thanks for your help. Is it ok to contact you if I have any more questions?

1 Like

Feel free :vulcan_salute: