Build a Bookstore Page - Step 19

Tell us what’s happening:

it keeps I should have id attribute with the value of view-cart-btn. Here is my code.

Review your selections and continue to checkout.

View cart Checkout

Your code so far

<!DOCTYPE html>
<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>
  
  <p>Review your selections and continue to checkout.</p>
  
  <div class="btn-container">
<!-- User Editable Region -->
  <button class="btn"><view-cart-btn="btn">view cart</button>
  <button class="btn"><checkout-btn="btn">checkout</botton>

<!-- User Editable Region -->
  </div>
</body>

</html>

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 19

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-bookstore-page/68eca6e5a6759ed4ea0034dc.md at main · freeCodeCamp/freeCodeCamp · GitHub

Hi @sizwe.chipinga,

I don’t see an id attribute inside either of your opening button tags. Remember, all attributes go inside the opening tag of an HTML element, an opening tag can include multiple attributes, and a complete HTML element typically has both an opening tag and a closing tag.

HTML - The id attribute

Also, make sure your text matches exactly to the instructions, including capitalization.

Happy coding

thank you for the help but can you show me an example of an id attribute in this scenario.

Did you look at the link?

thanks for the link. I’m sorry I didn’t see it.