Build a Bookstore Page - Step 7

Tell us what’s happening:

says my div element should have a class attribute

Your code so far

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>XYZ Bookstore Page</title>
</head>

<body>
  <h1>XYZ Bookstore</h1>
  <p>Browse our collection of amazing books!</p>

<!-- User Editable Region -->

  <div>
    <p class="card-container">card-container</p>
  </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/143.0.0.0 Safari/537.36 Edg/143.0.0.0

Challenge Information:

Build a Bookstore Page - Step 7

Can you show where the class attribute is on your div element?

Is it possible that the correct code is : <div class=”card-container”>

I’ve edited your post to improve the readability of the code. 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 (').

You have the code checker? Does that line work?

Please reply to me here instead of making a new thread

Tell us what’s happening:

  1. Your div element should have a class attribute.
  2. Your div element should have a class attribute with the value of card-container.
    !!!please help!!!

Your code so far

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>XYZ Bookstore Page</title>
</head>

<body>
  <h1>XYZ Bookstore</h1>
  <p>Browse our collection of amazing books!</p>

<!-- User Editable Region -->

  <div>
    <div class="card-container"/>
  </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/143.0.0.0 Safari/537.36 Edg/143.0.0.0

Challenge Information:

Build a Bookstore Page - Step 7

The instructions did not ask for a new div element. You need to remove your new div and instead edit the div that was already there.

<p class="example">example paragraph</p>

Add a class attribute to your div element and set its value to card-container.

thats the example it gave me to follow Im just really stuck on this no matter what i try.

I would reset the code to the starting code. Then only type in the attribute and it’s value.

this one does not have a class