Design a Business Card - Design a Business Card

Tell us what’s happening:

i need help with a valid href for my portfolio i don’t know what is wrong

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="pink flower">
        <p class="full-name">Govbeli</p>
        <p class="designation">Developer</p>
        <p class="company">GovTech</p>
        <hr>
        <p>govbeli@gmail.com</p>
        <p>555-555-555</p>
        <a>Portfolio</a>
        <hr>
        <a href="https://www.portfolio.com">
    </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;      /* No underline by default */
  color: inherit;             /* Optional: inherits text color */
}

a:hover {
  text-decoration: underline; /* Underline on hover */
}
.business-card {
  width: 300px;
  background-color: lightblue;
  padding: 20px;
  margin-top: 100px;
  text-align: center;
  font-size:  16px;
  margin-right: auto;
  margin-left: auto;
}
.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/137.0.0.0 Safari/537.36

Challenge Information:

Design a Business Card - Design a Business Card

Hi there, :blush:

You’re making great progress!

Just a quick heads-up — in your code, you have two separate <a> tags for “Portfolio.” One has the text, and the other has the href. It’s best to combine them.

That way, your link is functional and clean. Since your current question was about the href, I’ll stop here — but if you run into more issues with this lab, feel free to ask. We’re here to help! :+1:

2 Likes

Thanks is appreciated a lot man