Build a Bookstore Page - Step 7

Tell us what’s happening:

The code checker says “Your div element should have a class attribute.”
But isn’t that what I did? Did I do the closing tag wrong? I’ve tried fiddling with it but I get the same answer.

What am i doing wrong?

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>
  
<!-- User Editable Region -->
  <div> class="card-container">
    
  </div>
<!-- User Editable Region -->
</body>

</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36

Challenge Information:

Build a Bookstore Page - Step 7

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

Welcome to the forum @Trytrytry

Did you notice the extra text in the preview window?

Also, the second angular bracket for the opening div tag is shown in red in the editor.

It looks like the class attribute is outside the div tag.

Happy coding