Design a Greeting Card - Step 8

Tell us what’s happening:

After reviewing questions regarding this same issue, I saw that the coding is correct but the placement is wrong. I am confused, as don’t they get nested within the div element? The 2nd a element is correct but the 1st isn’t?

Thank you in advance!

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Greeting Card</title>
    <link href="styles.css" rel="stylesheet">
  </head>
  <body>
    <div class="card" id="greeting-card">
      <h1>Happy Birthday!</h1>
      <p class="message">
        Wishing you all the happiness and joy on your special day!
      </p>


<!-- User Editable Region -->


      <div class="card-links"></div>
        <a href="send" class="send-link">Send Card</a>
        <a href="share" class="share-link">Share on Social Media</a>


<!-- User Editable Region -->


  	</div>
  </body>
</html>

/* file: styles.css */
body {
  font-family: Arial, sans-serif;
  padding: 40px;
  text-align: center;
  background-color: brown;
}

.card {
  background-color: white;
  max-width: 400px;
  padding: 40px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px gray;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0

Challenge Information:

Design a Greeting Card - Step 8

the instructions were:

Add two a elements inside the .card-links element.

and so when we find the .card-links element in your code it currently looks as follows:

Currently, nothing is nested within this element’s tags.

to nest something, you need to insert your code between the opening tag and the closing tag. Example:

<p>
  this text is nested between the opening and closing tags of the paragraph
</p>

Thank you for the quick reply. That has been my main issue thusfar, the syntax. I just need to check and recheck and then recheck. I do appreciate your timely response.

1 Like