The first format it accepts is this, but I believe it’s not what the task ask for.
<article class="item">
<p class="dessert">Donut</p>
<p class="price">1.50</p>
<p class="dessert">Cherry Pie</p>
<p class="price">2.75</p>
<p class="dessert">Cheesecake</p>
<p class="price">3.00</p>
<p class="dessert">Cinnamon Roll</p>
<p class="price">2.50</p>
</article>
but it should be:
<article class="item">
<p class="dessert"> Donut</p>
<p class="price">1.50</p>
</article>
<article class="item">
<p class="dessert">Cherry Pie</p>
<p class="price">2.75</p>
</article>
<article class="item">
<p class="dessert">Cheesecake</p>
<p class="price">3.00</p>
</article>
<article class="item">
<p class="dessert">Cinnamon Roll</p>
<p class="price">2.50</p>
</article>
Edit: please link to the challenge
If you need help with the code formatting:
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).
I edited your post.
The formatting was pretty bad. I removed the extra closing </article>
you had at the end but I think that is what you wanted to post?
Again, please post a link to the specific challenge.
Then there is no need to… what ?
The code you posted does not pass on my browser.
Even if I remove the spaces between the p
elements the first code does not pass for me.
<article class="item">
<p class="dessert">Donut</p><p class="price">1.50</p>
<p class="dessert">Cherry Pie</p><p class="price">2.75</p>
<p class="dessert">Cheesecake</p><p class="price">3.00</p>
<p class="dessert">Cinnamon Roll</p><p class="price">2.50</p>
</article>
It does however for the second code (blurred just to not post spoilers):
<article class="item">
<p class="dessert"> Donut</p><p class="price">1.50</p>
</article>
<article class="item">
<p class="dessert">Cherry Pie</p><p class="price">2.75</p>
</article>
<article class="item">
<p class="dessert">Cheesecake</p><p class="price">3.00</p>
</article>
<article class="item">
<p class="dessert">Cinnamon Roll</p><p class="price">2.50</p>
</article>
1 Like
Um, actually it does.
You just have to put all those p into one line. My friend did the same and got it too.
<article class="item">
<p class="dessert">Donut</p><p class="price">1.50</p><p class="dessert">Cherry Pie</p><p class="price">2.75</p><p class="dessert">Cheesecake</p><p class="price">3.00</p><p class="dessert">Cinnamon Roll</p><p class="price">2.50</p>
</article>
Um, it helps if you post the code that actually breaks the test instead of different code that does not!
That one does, in fact, incorrectly pass the test for me.
Edit: Bug report created
opened 04:43PM - 23 May 22 UTC
type: bug
scope: curriculum
status: waiting triage
### Describe the Issue
This code should fail but actually passes.
### Affe… cted Page
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-basic-css-by-building-a-cafe-menu/step-53
### Your code
```
<article class="item">
<p class="dessert">Donut</p><p class="price">1.50</p><p class="dessert">Cherry Pie</p><p class="price">2.75</p><p class="dessert">Cheesecake</p><p class="price">3.00</p><p class="dessert">Cinnamon Roll</p><p class="price">2.50</p>
</article>
```

### Expected behavior
This code should fail.
That’s what I’m trying to say. The one line p’s are incorrectly pass.
As for “there’s no need to”, I accidentally submit trying to say “there’s no need to make a new line of p’s and add more articles as asked”, just write into one line with no space.
I think this PR fixes it but I didn’t test it.
freeCodeCamp:main
← Sboonny:fix/cafe-menu-step-53-hint
opened 06:44AM - 18 May 22 UTC
Checklist:
- [x] I have read [freeCodeCamp's contribution guidelines](htt… ps://contribute.freecodecamp.org).
- [x] My pull request has a descriptive title (not a vague title like `Update index.md`)
- [x] My pull request targets the `main` branch of freeCodeCamp.
- [x] I have tested these changes either locally on my machine, or GitPod.
Closes #45940
I **changed** `articles` elements to `article` elements, the imgs are outdated a little.


kudos to Tom for the idea
1 Like
system
Closed
November 22, 2022, 4:50am
11
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.