Build a Bookstore Page - Step 16

Tell us what’s happening:

my button element is giving me headache, can someone please help

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

<!-- User Editable Region -->

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0

Challenge Information:

Build a Bookstore Page - Step 16

1 Like

Welcome to the forum @Peacemaker

Your first button inside element with the class of btn-container should have an id attribute with the value of view-cart-btn.

Try adding a space between the attributes.

Happy coding