Build a Bookstore Page - Step 9

Tell us what’s happening:

Hi everyone

I made a post asking for help with my code on this step of HTML a while back, I’m still having trouble with this step. What could I posssibly be doing wrong, I’ve tried solving this code in anyway that I could think of, my code is still not passing even when typing it out exactly the way that I’m being asked to, here below I tried using an h1 for the code, but this is not working either.

help will be appreciated. thanks guys.

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

<!-- User Editable Region -->

    <div class="card"></div>
<h1 id="card">sally-adventure-book</h1>
    </div>

<!-- User Editable Region -->

  </div>
</body>

</html>

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 9

Why are there 2 h1s?

I tried to use those instead of the p element, whenever I use p my code still does not pass. I’ve tried resetting this section multiple times but when its reset it opens up with <div class= . I’m not sure why my code isn’t passing.

see here how there is a class attribute in the div opening tag? you need to add a second attribute, this time id, next to the class attribute

The test requires u to add an id to the div not h1.

code removed by moderator

hi @ameany0919

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

some people are visual learners, some are brand new to this type of technology, so the fact that you’re taking away learning strategies is kind of messed up.

having code available to copy and paste to solve the challenge is not a learning strategy

if you open a topic to get help, you can get all the visual help you need (if you ask your questions), but not an answer to copy and paste