Step 53 accepts 2 formats, one of them is kinda wrong?

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’s no need to

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

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.

1 Like

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