Files
webtek-assignment-3/responsive.html
Brikt Wiedswang d25e431fb5 add images
2025-10-24 14:50:36 +02:00

130 lines
2.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
line-height: 1.6;
}
header {
background: #333;
color: #fff;
padding: 20px;
text-align: center;
}
nav ul {
list-style: none;
padding: 0;
}
nav ul li {
display: inline;
margin-right: 10px;
}
nav ul li a {
color: #fff;
text-decoration: none;
}
.intro {
text-align: center;
padding: 40px;
background: #f4f4f4;
}
.features {
display: flex;
flex-direction: column;
justify-content: space-around;
padding: 20px;
}
.feature-item {
background: #fff;
padding: 20px;
border: 1px solid #ddd;
width: 30%;
}
footer {
text-align: center;
padding: 20px;
background: #333;
color: #fff;
}
img{
width: 100%;
}
</style>
</head>
<body>
<header>
<h1>Responsive Website Design</h1>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<main>
<section class="intro">
<h2>Welcome to our site</h2>
<p>This is a demonstration of a responsive website using HTML5 and CSS3.</p>
</section>
<section class="features">
<div class="feature-item">
<h3>Feature 1</h3>
<figure>
<img
src="images/kitchen1.jpg"
alt="Modern appliances" />
<figcaption>Modern appliances</figcaption>
</figure>
<p>Description of feature 1.</p>
</div>
<div class="feature-item">
<h3>Feature 2</h3>
<figure>
<img
src="images/kitchen2.jpg"
alt="industrial kitchen" />
<figcaption>Suitable for private and commmercial settings</figcaption>
</figure>
<p>Description of feature 2.</p>
</div>
<div class="feature-item">
<h3>Feature 3</h3>
<figure>
<img
src="images/kitchen3.jpg"
alt="food preparatoin" />
<figcaption>Safe and efficient food preparation</figcaption>
</figure>
<p>Description of feature 3.</p>
</div>
</section>
</main>
<footer>
<p>&copy; 2025 Responsive Website</p>
</footer>
</body>
</html>