Design a Business Card - Design a Business Card

Tell us what’s happening:

i hav done ervything possible but it keeps telling me this
After the phone number p element, there should be an a element with the text Portfolio

Your code so far

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

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

<body>
<div class="business-card">
<main> 
<img src="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg" alt="A pink flower" class="profile-image">
<p class="full-name">Your Name</p>
<p class="designation">Software Developer</p>
<p class="company">@freeCodeCamp</p>
<hr>
<p>your-email@example.com</p>
<p>Phone: 123-456-7890</p>
<a href="https://forum.freecodecamp.org/t/design-a-business-card-design-a-business-card/728417">Portfolio</a>
<hr>
<div class="social-media">
  <h2>Connect with me</h2>
  <a href="https://twitter.com">Twitter</a>
  <a href="https://linkedin.com">LinkedIn</a>
  <a href="https://github.com">GitHub</a>
</div>
</div>
</main>
</div>
</body>

</html>
/* file: styles.css */
body{
background-color:rosybrown;
font-family:Arial, sans-serif;
}
p{
  margin-top:5px;
  margin-bottom:5px;
}
a:hover{
  text-decoration:underline;
}
.business-card {
  width: 300px;
  background-color: #f0e6f6; /* any color you like */
  padding: 20px;
  margin: 100px auto 0 auto;
  text-align: center;
  font-size: 16px;
}
.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/136.0.0.0 Safari/537.36

Challenge Information:

Design a Business Card - Design a Business Card

Hi,
The error occurs because you’re using the main element. You can either remove the element or make sure your .business-card div comes inside the main element.
Good luck!

1 Like

thx ,IT SOLVED THE PROBLEM

1 Like