Build a Bookstore Page - Step 18

Tell us what’s happening:

Step 18

Hi guys, i have no idea why my code cant pass. i have tried to move the

element anywhere possible as required by the instruction but nothing worked. and the text which im certainly sure is correct as instructed, still cant pass. please help

Your code so far


<!-- User Editable Region -->

<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>
        <p>Review your selections and continue to checkout.</p>
        <div class="btn-container"></div>
 
<div class="btn-container">
    <div class="card" id="dave-cooking-book"></div>
    <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>
 

  

<!-- 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/142.0.0.0 Safari/537.36

Challenge Information:

Build a Bookstore Page - Step 18

reset the step, then find the element with class="card-container", find where it ends (the closing tag), and add the new element after the closing tag

1 Like

i tried, but still failed. i dont understand why the text is wrong regardless it was correct.

// running tests
1. The newly added p element should be below the element with a class of card-container.
2. Your new p element's text should be Review your selections and continue to checkout..

i have just figured out that i didnt close the div element with the attribute card-container. so it was supposed to have two closing tag for div element.

thank you for your help :slight_smile:

1 Like

each div has one closing tag

1 Like

yes. i didnt notice that i havent closed the second div element .