Design a Business Card - Design a Business Card

Tell us what’s happening:

Hello, please help me out.
How do i solve this code problem, “set links to underline by default”

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <head>

    <meta charset="utf-8">
    <link rel="stylesheet" type="text/css" href="styles.css"/>
    <title>Business Card</title>
</head>

<body>
    
    <div class="business-card">
        <img class="profile-image" src="https://cdn.freecodecamp.org/currriculum/labs/flower.jpg" alt=" beautiful flower"/>
        <h1>
       <p class="full-name">PINELOPE MATT</P></h1>
       <p class="designation">Software Developer</p>
       <p class="company">Freecodecamp learning</p>
       <hr></hr>
       <p>E-mail:pINE333@gmail.com</p>
<p>Phone:001456777</p>
<a href="https//www.portfolio.com">Portfolio</a>

       <hr></hr>
<div class="social-media">
    <h2>Connect with me</h2>
    <a href="https//www.twitter.com">Twitter</a>
    <a href="https//www.linkedIn.com">LinkedIn</a>
    <a href="https//www.github.com">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: pink;
padding: 20px;
margin-top: 100px;
text-align: center;
font-size: 16px;
margin-left: auto;
margin-right: auto;
}
.profile-image{
  max-width: 100%;
}
.full-name {
  font-size: 15px;

}
a:link {
  text-decoration: none;
}
a:visited { text-decoration: none;
text-color: black;

}
a:hover {
  text-decoration: underline;
}
a:active {
  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/135.0.0.0 Safari/537.36

Challenge Information:

Design a Business Card - Design a Business Card

Hey there,
Try adding the style to the a element without any pseudo-class.
I hope this helps!

1 Like

i do not seem to understand what you mean.

here you have tried this, but a:link is for unvisited elements, not for all a elements

1 Like