-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCSS_Card_Component_Solution.html
More file actions
28 lines (27 loc) · 1.04 KB
/
Copy pathCSS_Card_Component_Solution.html
File metadata and controls
28 lines (27 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Card Component - Solution</title>
<link rel="stylesheet" href="CSS_Card_Component_Solution.css">
</head>
<body>
<div class="card">
<img src="https://via.placeholder.com/300x200" alt="Placeholder Image">
<div class="card-content">
<h3>Card Title</h3>
<p>This is a description for the card content. It can be a short summary or a brief introduction to the topic.</p>
<a href="#" class="button">Read More</a>
</div>
</div>
<div class="card">
<img src="https://via.placeholder.com/300x200?text=Another+Card" alt="Another Placeholder Image">
<div class="card-content">
<h3>Another Card</h3>
<p>Another card showcasing different content. The styling remains consistent due to the reusable CSS classes.</p>
<a href="#" class="button">View Details</a>
</div>
</div>
</body>
</html>