Build a Bookstore Page - Step 16

Tell us what’s happening:

I have the instruction “Your first button inside element with the class of btn-container should have an id attribute with the value of view-cart-btn” however, I have exactly the same code as was successful in the first half of the code, yet something appears to be wrong.

Your code so far

<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">
  <div class="btn" id="view-cart-btn">
    <button class="btn">View Cart</button>
    <div class="btn" id="checkout-btn">
    <button class="btn">Checkout</button>
</div>


<!-- User Editable Region -->

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15

Challenge Information:

Build a Bookstore Page - Step 16

Why do you have these div opening tags here? Your button elements should have the specified id attributes.