Tell us what’s happening:
it says i should create a div element with class attribute.
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="styles.css">
<meta charset="utf-8">
<title>Business Card</title>
<h1>Flower Labs</h1>
</head>
<body>
<div class="business-card">
<img src="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg" alt="flower labs" class="profile-image">
<p class="full-name">Tsholofelo Maseko</p>
<p class="designation">Founder</p>
<p class="company">Flower Labs</p>
<hr>
<p>email address</p>
<p>phone number</p>
<a href="https://www.freecodecamp.org/">Portfolio</a>
<hr>
</div>
<div class="social-media"><h2>Connect with me</h2>
<a href="https://www.linkedin.com/authwall?trk=bf&trkInfo=AQFQa1yFJCk3lwAAAZYxFsEo32a8VZMk5BDihuF7DBjV-xU8t5sxMGAJomAwAg5sNop2MH1CYphPYXTGn6ScezPoxN">Twitter</a>
<a href="https://www.linkedin.com/authwall?trk=bf&trkInfo=AQFQa1yFJCk3lwAAAZYxFsEo32a8VZMk5BDihuF7DBjV-xU8t5sxMGAJomAwAg5sNop2MH1CYphPYXTGn6ScezPoxN">LinkedIn</a>
<a href="https://www.linkedin.com/authwall?trk=bf&trkInfo=AQFQa1yFJCk3lwAAAZYxFsEo32a8VZMk5BDihuF7DBjV-xU8t5sxMGAJomAwAg5sNop2MH1CYphPYXTGn6ScezPoxN">GitHub</a>
</div>
</body>
</html>
/* file: styles.css */
body {
background: rosybrown;
font-family: Arial,sans-serif;
}
p {
margin: 5px;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.business-card {
width: 300px;
background: red;
padding: 20px;
margin-top: 100px;
text-align: center;
font-size: 16px;
margin-right: auto;
margin-left: auto;
}
.profile-image {
max-width: 100%;
}
hr {
height: 2px;
border-color: slategrey;
border-style: dashed;
border-width: 1px;
}
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