Design a Business Card - Design a Business Card

Tell us what’s happening:

I did all correct but still show error in Portfolio as I did the same as requirement

Your code so far

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

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

<body>
    <div class="business-card">
        <main>
            <img class="profile-image" src="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg" alt="flower" />
            <p class="full-name">Trung</p>
            <p class="designation">Software Developer</p>
            <p class="company">@Tbs</p>
            <hr>
            <p>trung@gmail.com</p>
            <p>Phone: (123) 456-7890</p>
    <a href="http://example.com">Portfolio</a>

            <hr>

            <div class="social-media">
                <h2>Connect with me</h2>
    <a href="twitter.com">Twitter</a>
     <a href="linkedin.com">LinkedIn</a>
      <a href="github.com">GitHub</a>
                </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{
  text-decoration: none
}

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

.profile-image{
  max-width:100%;
}

hr{
  padding: 0 20px;
}

Your browser information:

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

Challenge Information:

Design a Business Card - Design a Business Card

you have added something that was not asked for and it’s throwing off the test

I checked carefully and there’s no mistake, it said “After the phone number p element, there should be an a element with the text Portfolio” and I did it right, no adding anything else

Outside that user story, you have added something that was not asked for and it’s throwing off the test

ok thanks, I removed main tag and it worked, really confuse why it related to the problem

sometimes to individuate an element the tests make certain assumptions

there is some work in progress to update the lab to avoid this inconvenience

What made you add a main element when it’s not in the instructions?

yes, i did make a mistake there but it didn’t give me an error message right there so i’m a bit confused