Let’s apply what you’ve learned to style your Personal Bio Page from Module 2.
<!DOCTYPE html>
<html>
<head>
<title>Styled Bio</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>Welcome to My Bio</h1>
</header>
<main>
<section>
<h2>About Me</h2>
<p>Hi, I’m [Your Name]. I love web development!</p>
</section>
</main>
<footer>
<p>© 2024 My Website</p>
</footer>
</body>
</html>
/* General Styles */
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 0;
padding: 0;
background-color: #f9f9f9;
}
header {
background: #333;
color: white;
text-align: center;
padding: 20px;
}
main {
padding: 20px;
}
h1, h2 {
color: #333;
}
footer {
text-align: center;
padding: 10px;
background: #333;
color: white;
}
Next up is Module 4, where you’ll bring your website to life with JavaScript. 🚀