Kishvar Ssa2
Kishvar Ssa2
Name : KISHVAR. C
Year / Sec : I / C4
Marks Awarded:
Problem Analysis:
1. User Requirement: The primary users are cooking enthusiasts looking for
clear and concise recipes. They need an intuitive layout for ingredient lists and step-
by-step instructions.
1. HTML: Used for structuring the content of the page, dividing it into
sections such as header, recipe content, and footer.
Solution:
1. Responsive Layout: Using CSS Flexbox allows the recipe content to align
side-by-side on larger screens, enhancing readability.
2. Styling: Colors, padding, and margins make the text readable and ensure
the page has an inviting look.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Delicious Recipe</title>
<style>
/* Global Styles */
body {
background-color: #f3f3f3;
color: #333;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
.recipe-container {
max-width: 600px;
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
h1 {
font-size: 2rem;
color: #d2691e;
text-align: center;
margin-bottom: 20px;
.recipe-image img {
width: 100%;
border-radius: 8px;
.ingredients-section, .instructions-section {
margin-top: 20px;
h2 {
font-size: 1.5rem;
color: #333;
margin-bottom: 10px;
ul, ol {
margin: 0;
padding: 0;
list-style-position: inside;
li {
margin: 5px 0;
.recipe-link {
margin-top: 20px;
text-align: center;
.recipe-link a {
text-decoration: none;
color: #fff;
background-color: #d2691e;
border-radius: 5px;
.recipe-link a:hover {
background-color: #c1521d;
</style>
</head>
<body>
<div class="recipe-container">
<div class="recipe-image">
</div>
<div class="ingredients-section">
<h2>Ingredients</h2>
<ul>
<li>2 eggs</li>
</ul>
</div>
<!-- Instructions Section -->
<div class="instructions-section">
<h2>Instructions</h2>
<ol>
<li>Cream together the butter, white sugar, and brown sugar until smooth.</li>
<li>Dissolve baking soda in hot water and add to the batter along with salt.</li>
</ol>
</div>
<div class="recipe-link">
</div>
</div>
</body>
</html>
Output:
Results:
The final page meets user needs by providing a clear, concise recipe structure.
The page is functional, visually appealing, and responsive, ensuring usability on a
range of devices.
Conclusion:
References