Design a Business Card - Design a Business Card

Tell us what’s happening:

I need help on step 29 please which is:

After the phone number p element, there should be an a element with the text Portfolio.

I am not sure of why my code is incorrect ;-; please help. I’ve looked at multiple forums but still cannot find the solution.

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>Business Card</title>
    <link href="styles.css" rel="stylesheet"/>

</head>

<body>
    <div class="business-card">
        <main>
            <img src="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg" alt="flower-corp" class="profile-image">
            <p class="full-name">Pink Flower</p>
            <p class="designation">Founder</p>
        <p class="company">Flower Corp</p>
        <hr>

        <p>pinkflower.corp@gmail.com</p>
        <p>(626)143-1432</p>
        <a href="https://github.com/">Portfolio</a>
        <hr>
        
    <div class="social-media">
        <h2>Connect with me</h2>
        <a href="https://x.com/">Twitter</a>
        <a href="https://www.linkedin.com/">LinkedIn</a>
        <a href="https://github.com/">GitHub</a>
        
</body>

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

p {
  margin: 5px;
}

.business-card { 
  width: 300px;
  padding: 20px;
  background-color: rgb(228, 242, 254) ;
  text-align: center;
  margin-top: 100px;
  font-size: 16px;
  margin-right: auto;
  margin-left: auto;
}

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

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/136.0.0.0 Safari/537.36 Edg/136.0.0.0

Challenge Information:

Design a Business Card - Design a Business Card

  • What is the meaning of wrting this main?

  • main, .business-card and .social-media have no closing tags.(Basic Sytax!!!)

Happy Coding! Welcome!

Yes I know, I am not done with my code. That was not my issue. Like I said in the post, it is saying step 29 is wrong.

If you do not fix your basic sytax mistake,everything could not be right!
Try fix it and test your code!

Yes I know. I added them and it is still wrong Dovb1ek. Like I said the issue is step 29.

Can you show me how you modify your code?

thank you for the help, I reread what you first said and realized, “oh yeah, why did I put main, there shouldn’t be one.” I deleted the main and I 100% completed the lab. Thank you again

1 Like

Welcome to the forum @elizabethren1432

You are not asked to use the main element.

Happy coding