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
  2. After the a element containing your portfolio, there should be another hr element as a divider.

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">
        <img class="profile-image" src="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg" alt="Singular flower with pink petals.">
        <p class="full-name">Winterr</p>
        <p class="designation">Full Stack Developer</p>
        <p class="company">freecodecamp.org</p>
        <hr>
        <p>Winterr@email.com</p>
        <p>(123) 456-7890</p>
        <p><a href="https://www.w3schools.com">Portfolio</a></p>
        <hr>
        <div class="social-media">
            <h2>Connect with me</h2>
            <a href="#">Twitter</a>
            <a href="#">LinkedIn</a>
            <a href="https://github.com/Winterr4077">GitHub</a>
    </div>
</body>

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

p {
  margin-top: 5px;
  margin-bottom: 5px;
}

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

a {
  text-decoration: none;
}

.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/133.0.0.0 Safari/537.36 OPR/118.0.0.0

Challenge Information:

Design a Business Card - Design a Business Card

You have included an element here that was not asked for in the instructions.

1 Like

Thank you so much, it worked!

Note - it is best to describe how you are stuck in your own words instead of just copy-pasting the tests you are failing.