Design a Business Card - Design a Business Card

Tell us what’s happening:

  1. After the phone number p element, there should be an a element with the text Portfolio. I can’t understand the problem

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"/>
</head>

<body>
    <div class="business-card">
        <main>
            <section>
            <img class="profile-image" src="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg" alt="profile-image"/>
            <p class="full-name">Sabrina Carpenter</p>
            <p class="designation">American pop singer</p>
            <p class="company">Factor A</p>
            <hr>
            <p>email@example.com</p>
            <p>Phone: (123) 456-7890</p>
            <a href="http://www.w3schools.com">Portfolio</a>
<hr>
            </section>
            <div class="social-media">
                <h2>Connect with me</h2>
                <a href="/">Twitter</a>
                <a href="/">LinkedIn</a>
                <a href="/">GitHub</a>
            </div>
        </main>
    </div>
</body>
</html>
/* file: styles.css */
body {
  background-color: rosybrown;
  font-family: Arial, sans-serif; 
}

.business-card {
  font-size: 16px;
  border: 2px solid blue;
  border-radius: 8px;
  padding: 20px;
  margin-top: 100px;
  margin-right: auto;
  margin-left: auto;
  width: 300px;
  text-align: center;
  background: white;
}

.profile-image {
  max-width: 100%;
  border-radius: 8px;
}

p {
margin: 5px;
}

a {
  text-decoration: none;
}

Your browser information:

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

Challenge Information:

Design a Business Card - Design a Business Card
https://www.freecodecamp.org/learn/full-stack-developer/lab-business-card/design-a-business-card

Hi @baybikovalissa and welcome to our community!

It seems that your main and section elements are causing that test to fail. Remove them and your code should pass.

Which part of the instructions caused you to create a main element?