Design a Business Card - Design a Business Card

Tell us what’s happening:

Step 17: I have added a


element in what I assume is the correct position, but I still have the error.

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="a pretty flower">
        <p class="full-name">Noah Grischkan</p>
        <p class="designation">Gizbor</p>
        <p class="company">BBYO</p>
        <hr>
        <p><a href="mailto:ngrischkan@gmail.com">ngrischkan@gmail.com</a></p>
        <p><a href="tel:+16146390020">614-639-0020</a></p>
        <p><a class="portfolio-link" href="https://wikipedia.com" target="_blank">Portfolio</a></p>
        <hr>
        <div class="social-media">
            <h2>Connect with me</h2>
            <a href="https://x.com">Twitter</a>
            <a href="https://linkedin.com">LinkedIn</a>
            <a href="https://github.com">GitHub</a>
        </div>
    </div>
</body>

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

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

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

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

a {
    text-decoration: none;
}

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36

Challenge Information:

Design a Business Card - Design a Business Card

hi and welcome to the forum.

Try to remove the extra code that was not requested by the steps and just follow the exact requirements as given. Specifically these ones:

  1. After the hr element, there should be two p elements. In the first p element, you should have an email address as the text. In the second p element, the text should be a phone number.
  2. After the two p elements, there should be an a element with a class of portfolio-link, the text Portfolio, and it should link to a valid URL.
  3. There should be an hr element after the a element containing the portfolio link.

Compare these with your code and change anything that does not match exactly.

        <p><a href="mailto:ngrischkan@gmail.com">ngrischkan@gmail.com</a></p>
        <p><a href="tel:+16146390020">614-639-0020</a></p>
        <p><a class="portfolio-link" href="https://wikipedia.com" target="_blank">Portfolio</a></p>
        <hr>

For eg. Where does it say that the first paragraph after the first hr should contain an anchor? (it says it should contain text, not an anchor)

Thank you so much for responding. It turns out I didn’t need to put my portfolio anchor inside a paragraph.