Build a Bookstore Page - Step 19

Tell us what’s happening:

Keeps telling me the error that my “first and second button inside element with the class of btn-container should have an id attribute with the value of view-cart-btn”.
I’ve wrote it the way it has been teaching me, but I’m still unable to get it right.
Seems like, in the Preview window, I need the button “Checkout” to be alongside the “View Cart” button, how do I do that?
Because in my case right now, they’re below the other.
Thanks.

Your code so far

<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>XYZ Bookstore Page</title>
</head>

<body>
  <h1>XYZ Bookstore</h1>
  <p>Browse our collection of amazing books!</p>
  <div class="card-container">
    <div class="card" id="sally-adventure-book">
      <h2>Sally's SciFi Adventure</h2>
      <p>This is an epic story of Sally and her dog Rex as they navigate through other worlds.</p>
      <button class="btn">Buy Now</button>
    </div>
    <div class="card" id="dave-cooking-book">
      <h2>Dave's Cooking Adventure</h2>
      <p>This is the story of Dave as he learns to cook everything from pancakes to pasta, one recipe at a time.</p>
      <button class="btn">Buy Now</button>
    </div>
  </div>

<!-- User Editable Region -->

  <p>Review your selections and continue to checkout.</p>
  <div class="btn-container" id="view-cart-btn">
<button class="btn">View Cart</button>
<div class="btn-container" id="checkout-btn">
<button class="btn">Checkout</button>
  </div>

<!-- User Editable Region -->

</body>

</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0

Challenge Information:

Build a Bookstore Page - Step 19

Hi

You have the instructions a bit muddled.

It asks you to add 2 button elements with the stated attributes and text. You have also added another element.

I suggest you rest the step and carefully follow the instructions to put the items in the correct place.

1 Like

I’ve passed the test.

Thanks.

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