Design a Business Card - Design a Business Card

Tell us what’s happening:

Step 29
I don’t know why it is saying there is not an (a) element? There is one. I have done everything I can think of… I have run the tests in a different browser and I am still getting the same message. What have I done wrong?

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>Business Card</title>
    <link href="styles.css" rel="stylesheet"></link>
</head>

<body>
<p>
    <div class="business-card">
        <business-card>
            <img class="profile-image" src="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg" alt="pink cone flower in full bloom">
            <p class="full-name">Sharon Tankersley</p>
            <p class="designation">Software Developer</p>
            <p class="company">@freecodecamp</p>
            <hr>
            <p>sharon.tankersly38@yahoo.com</p>
            <p>123-456-7890</p>
            <a href="https://www.google.com">Portfolio</a>
<hr>
<div class="social-media">
    <social-media>
        <h2>Connect with me</h2>
        <a href="https://x.com/SharonTank49703">Twitter</a>
        <a href="https://www.linkedin.com/">LinkedIn</a>
        <a href="https://github.com/">GitHub</a>
        </social-media>
</div>
    </div>
</p>
</body>

</html>
/* file: styles.css */
body {
  background-color: rosybrown;
  font-family: Arial, sans-serif;
}

p {
  margin-top: 5px;
  margin-bottom: 5px;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.business-card {
  width: 300px;
  padding: 20px;
  margin-top: 100px;
  font-size: 16px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  background-color: teal;
}

hr {
  height: 2px;
  border-color: slategray;
  border-style: dashed; 
  border-width: 1px;;
}
.profile-image{
  max-width: 100%;
}

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

Challenge Information:

Design a Business Card - Design a Business Card

Sorry… the error is that after the (p) element with the phone number there should the an (a) element with the text portfolio…

 <business-card>

That’s not a valid element. When it refers to .business-card element, it means the div with a class of business-card. (The dot at the beginning refers to a class)

You’ve done the same invalid element with social media

Thank you so much for you help. That was exactly the problem.

1 Like