It’s asking for at least 10 “p” elements, and I have 12. I am not passing it, help me someone…
Can you share your code or a link to your project? It isn’t possible for us to help without your code.
@Only-KK, when a test fails click the red button to see which test(s) are failing and text to help you correct the issue.
Be sure and read more than just the first line of the failing message. The ability to read and comprehend error messages is a skill you’ll need to acquire as a developer. Ask specific questions on what you don’t understand.
The full failing message you are referring to says
The .main-section elements should contain at least 10 <p> elements total (not each). There are not at least 10 <p> elements throughout all of the elements with the class of 'main-section' : expected 0 to be at least 10 AssertionError: There are not at least 10 <p> elements throughout all of the elements with the class of 'main-section' : expected 0 to be at least 10
Do you understand what the test is looking for and why it is failing?
As a hint, here is a snippet of two of your
<section class="main-section" id="italian_foods"> <header>Italian Foods</header> </section> <section class="main-section" id="thai_foods"> <header>Thai Foods</header> </section>
On a side note, do not use the
<br> element to force line breaks or spacing. That’s what CSS is for.
Reference MDN Docs
(post deleted by author)
Thank you so much I saw my mistakes I was making . I had my “p” elements outside of the correct area… On the hint note, how do I use spacing in CSS???
You can use margin and/or padding for spacing
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.