Design a Business Card - Design a Business Card

Tell us what’s happening:

I keep getting the same error message #29 "After the phone number p element there should be an anchor element with the text “Portfolio”. I have messed with syntax, tried rewriting that particular bit of code, and switched browsers. I’d appreciate any feedback. Thank you!

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://th.bing.com/th/id/OIP.bYJ1BX4dQ7M17xGRMmNS6QAAAA?w=188&h=130&c=7&r=0&o=7&dpr=2.3&pid=1.7&rm=3 alt="squashed anime girl" class="profile-image">
  <p class="full-name">Quinn Graff</p>
  <p class="designation">Software engineer in training</p>
  <p class="company">Unemployed</p>
<hr>
  <p>Email: quinnhasbegin@gmail.com</p>
  <p>Phone: 864-256-5463</p>
  <a href="https://www.bing.com/videos/riverview/relatedvideo?&q=anime+puppy+girl+go+bark+&&mid=E5C37F8F76C33BEA0059E5C37F8F76C33BEA0059&&FORM=VRDGAR">Portfolio</a>
<hr>
    <div class="social-media">
     <h2>Connect with me</h2>
     <a href="https://www.bing.com/videos/riverview/relatedvideo?&q=anime+puppy+girl+go+bark+&&mid=E5C37F8F76C33BEA0059E5C37F8F76C33BEA0059&&F ORM=VRDGAR">Twitter</a>
     <a href="https://www.bing.com/videos/riverview/relatedvideo?&q=anime+puppy+girl+go+bark+&&mid=E5C37F8F76C33BEA0059E5C37F8F76C33BEA0059&&FORM=VRDGAR">LinkedIn</a>
     <a href="https://www.bing.com/videos/riverview/relatedvideo?&q=anime+puppy+girl+go+bark+&&mid=E5C37F8F76C33BEA0059E5C37F8F76C33BEA0059&&FORM=VRDGAR">GitHub</a>
</div>
    

   



</main>
</div>

</body>

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

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

.profile-image{
    display: block;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    border: solid 2px;
    border-color: #9b111e;
    height: 180px;
    width: 200px;
}
    
 p {
   margin-top: 5px;
   margin-bottom: 5px;

 }  
 .portfolio {
   display: block;
  }

a {
  text-decoration: none;
  color: brown;
}

hr {
  border-color: #9b111e;
}

}

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 Edg/137.0.0.0

Challenge Information:

Design a Business Card - Design a Business Card

Hi @Qgraff4

Why do you have a main element?

Happy coding

OMG, I just assumed that the div had to house a main element that would hold all of the other elements since it was where everything was going. Thanks for the assistance.

1 Like