Sino Marunong dito mag code HTML & CSS website Simple display lang walang function
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.
<!DOCTYPE html>
<html>
<head>
<title>My Simple Website</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<header>
<h1>Welcome to My Simple Website</h1>
</header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<main>
<h2>About Me</h2>
<p>Hi, my name is John. I am a web developer.</p>
<img src="myphoto.jpg" alt="My Photo">
</main>
<footer>
<p>© 2021 My Simple Website. All rights reserved.</p>
</footer>
</body>
</html>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
header {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
}
nav {
background-color: #f2f2f2;
padding: 10px;
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
}
nav li {
margin: 0 10px;
}
nav a {
color: #333;
text-decoration: none;
}
main {
margin: 20px;
}
h2 {
color: #333;
}
p {
color: #666;
line-height: 1.5;
}
img {
display: block;
margin: 20px auto;
max-width: 100%;
}
footer {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
}
pm bossako boss bakit at para saan ?