Build a Bookstore Page - Step 19

Tell us what’s happening:

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

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>
    <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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36

Challenge Information:

Build a Bookstore Page - Step 19

remember how you added an id to other elements

XYZ Bookstore Page

XYZ Bookstore

Browse our collection of amazing books!

<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>

Review your selections and continue to checkout.

View Cart <div vlass="btn-container"

id=“checkout-btn”>Checkout

</div>

It’s still saying the same thing

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

When you enter a code block into a forum post, please precede it with three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add the backticks.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

I figured it out! Thank you!