Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
18 views4 pages

Assignment - 1-1

Assignment

Uploaded by

Trinadh Reddi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views4 pages

Assignment - 1-1

Assignment

Uploaded by

Trinadh Reddi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

ASSIGNMENT – 1

TASK : create a webpage layout by using the html and css. 21221A6149

Index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Colorful Layout</title>
<link rel="stylesheet" href="assignment1.css"/>
</head>
<body>
<header class="main-header">
<div class="logo">
<h1 style="color: #f0f8ff;">Layouts</h1>
</div>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<main class="content-area">
<section id="content" style="background-color: #d0e4f5;">
<h3>Content Section</h3>
<ul id="contentitems">
<li><a href="#">Content1</a></li>
<li><a href="#">Content2</a></li>
<li><a href="#">Content3</a></li>
</ul>
</section>
<aside id="data-section" style="background-color: #f5d0e4;">
<h2>Data</h2>
<div id="data1">
<h1>Data 1</h1>
</div>
<div id="data2">
<h1>Data 2</h1>
</div>
</aside>
</main>
</body>
</html>

Style.css
body {
margin: 0;
font-family: Arial, sans-serif;
}

.main-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
background-color: #34495e; /* Dark blue background */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
flex-grow: 1;
color: #fff; /* White text for logo */
}

nav {
display: flex;
list-style: none;
padding: 0;
}

nav li {
margin-right: 20px;
}

nav a {
color: #fff; /* White text for navigation links */
text-decoration: none;
font-weight: bold;
}

nav a:hover {
color: #007bff; /* Blue on hover */
}

.content-area {
display: flex;
padding: 20px;
}

#content {
flex: 1;
padding: 20px;
border-radius: 5px;
}

h3 {
margin-bottom: 15px;
color: #fff;
background-color: #2c3e50; /* Darker blue for headings */
padding: 10px;
border-radius: 5px;
}

#contentitems {
padding: 0;
list-style: none;
}

.contentitem {
margin-bottom: 10px;
}

#data-section {
flex: 1;
padding: 20px;
border-radius: 5px;
}

h2 {
margin-bottom: 15px;
color: #2c3e50; /* Darker blue for subheadings */
}

#data1, #data2 {
background-color: #fff;
padding: 20px;
margin-bottom: 10px;
border-radius: 5px;
text-align: center;
}

a {
color: #fff;
text-decoration: none;
}

a:hover {
color: #007bff; /* Blue on hover */
}

Output :

You might also like