Below the element with the class card-container, add a new p element with this text: Review your selections and continue to checkout. Below the p element, create a div element with the class attribute set to btn-container. This container will group your navigation button elements. Apparently the “P” element is wrong? Does anyone know what is wrong?
I have wrote:
<div class="card-container"></div>
<p>Review your selections and continue to checkout.</p>
<div class="btn-container"></div>
I’ve removed card-container to see if that has helped, but the ‘Check your code’ now comes back with “The newly added p element should be below the element with a class of card-container.”
<h1>XYZ Bookstore</h1>
<p>Browse our collection of amazing books!</p>
<div class="card-container"></div>
<p>Review your selections and continue to checkout</p>
<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 class="btn-container"></div>
Why did you close card-container here?
Please reset the step and add new elements aftercard-container’s closing div on the 15th line.
You don’t need to change the given code
<h1>XYZ Bookstore</h1>
<p>Browse our collection of amazing books!</p>
<div class="card-container">
<p>Review your selections and continue to checkout</p>
<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 class="btn-container">
</div>