top of page

Exercise 2

Screenshot 2026-05-07 at 8.54.57 AM.png
Screenshot 2026-05-07 at 8.54.48 AM.png

Coding:

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Foods</title>

<style>

body {

margin: 0;

font-family: Georgia, serif;

background-color: #dcdcdc;

color: #000;

}


 

.container {

width: 90%;

max-width: 1000px;

margin: auto;

padding: 20px;

}

 

header h1 {

color: purple;

font-size: 29px;

margin-bottom: 0;

}

 

header p {

color: #807cc9;

font-style: italic;

margin-top: 5px;

}

 

h2 {

margin-top: 25px;

font-size: 15px;

}

 

.gallery {

display: grid;

grid-template-columns: repeat(3, 1fr);

gap: 18px;

margin-top: 10px;

margin-bottom: 30px;

}

 

.gallery img {

width: 100%;

height: 250px;

object-fit: cover;

border-radius: 5px;

box-shadow: 0 4px 8px rgba(0,0,0,0.2);

}

 

.ingredients {

margin-top: 20px;

}

 

.ingredients h3 {

margin-bottom: 10px;

}

 

.ingredients ul {

padding-left: 20px;

line-height: 1.6;

}

 

@media (max-width: 768px) {

.gallery {

grid-template-columns: 1fr;

}

}

</style>

</head>

 

<body>

 

<div class="container">

 

<header>

<h1>Good ramen vs ramen</h1>

<p>Ramen comparison </p>

</header>

 

<h2>Shio Ramen </h2>

<div class="gallery">

<img src="ramen1.jpg" alt="ramen1">

<img src="ramen2.jpg" alt="Ramen2">

<img src="ramen3.jpg" alt="Ramen3">

</div>

 

<h2>Ramen but not ramen</h2>

<div class="gallery">

<img src="ramen4.jpg" alt="Whistler">

<img src="ramen5.jpg" alt="Miso ramen">

<img src="ramen6.jpg" alt="Ramen">

</div>

 

<div class="ingredients">

<h3>Ingredients for ramen:</h3>

<ul>

<li>Chicken Stock</li>

<li>Sesame oil</li>

<li>Soy sauce</li>

<li>Noodles</li>

<li>Ginger</li>

<li>Minced garlic</li>

<li>Egg</li>

<li>Scallions</li>

<li>Shiitake mushroom</li>

<li>Water</li>

<li>Mirin</li>

<li>Miso</li>

<li>Corn & onion</li>

</ul>

</div>

 

</div>

 

</body>

</html>

bottom of page