CSS3 Tags.: Name: Vijeta Roll-No.:55 Assignment 2: Design A Web Page To Demonstrate The Use of
CSS3 Tags.: Name: Vijeta Roll-No.:55 Assignment 2: Design A Web Page To Demonstrate The Use of
Roll-No.:55
Assignment 2: Design a web page to demonstrate the use of
CSS3 tags.
HomePage.html
<html>
<head>
<title>HomeWorkTrak</title>
<link rel="stylesheet" href="home.css">
</head>
<body>
<!-- Header 1 -->
<header class="main" id="home" style="background-color:cadetblue;
padding:20px;">
<p style="color:white;margin-right:10px;display: inline-block;">📞
+2089342098</p>
<p style="color:white;margin-right:10px;display: inline-block;"> 📩
[email protected]</p>
<div style="float: right;display: inline-block;color: #f2f2f2;text-align:
center;padding: 14px 16px;margin-right:10px;">
<div class="container"; onclick="openNav()">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
</div>
</header>
<!-- Container -->
<section>
<article style="background-color: black; height:350px;">
<!-- home -->
<div class="container">
<img src="b.png" style="width:100%;">
<div class="content">
<h1><big><big>The Best Way to Manage Homework</big></big></h1>
<p>Simple HomeWork Mangement for every Teacher.</p>
<p>Helping Your Studens, Helping Yourself.</p>
<br><br><br>
<h1><big><big>Enjoy Learning</big></big></h1>
</div>
</div>
<!-- about us -->
<div class="main" id="sec1">
<br><img src="c.png" style="display: block;margin-left: auto;margin-right:
auto; width: 2%;">
<h1><big><big><center>HomeWorkTrak</center></big></big></h1>
<p align="center" style="font-size:19px;"><b>At HomeWorkTrak, we're
passionate about helping kids do better at school and believe that educational
tools
should be simple and easy to use.</b></p>
<div class="row">
<div class="column">
<h2>Save Time</h2>
<p>Posting homework only takes a few minutes a day and reduces your
administrative burden.</p>
</div>
<div class="column">
<h2>Improve Accountiblity</h2>
<p>Even your most disorganized students know "What Needs to Get Done"
and "When It's Due".</p>
</div>
<div class="column">
<h2>Engage Teachers</h2>
<p>Teachers can easily keep track of all their students homework in one
place so they can support learning at home.</p>
</div>
</div>
</div>
</article>
</section>
<script>
function openNav() {
document.getElementById("mySidepanel").style.width = "250px";
}
function closeNav() {
document.getElementById("mySidepanel").style.width = "0";
}
</script>
</body>
</html>
HomePage.css
<style>
.container {
display: inline-block;
cursor: pointer;
}
body {
font-family: Arial;
font-size: 17px;
}
.container {
position: relative;
max-width: 800px;
margin: 0 auto;
}
.container .content {
position: absolute;
bottom: 0;
background: rgb(0, 0, 0); /* Fallback color */
background: rgba(0, 0, 0, 0.5); /* Black background with 0.5 opacity
*/
color: #f1f1f1;
width: 100%;
padding: 23px;
}
.sidepanel a {
padding: 8px 8px 8px 32px;
text-decoration: none;
font-size: 25px;
color: black;
display: block;
transition: 0.3s;
}
.sidepanel a:hover {
color: #00ffff;
}
.sidepanel .closebtn {
position: absolute;
top: 0;
right: 25px;
font-size: 36px;
}
.openbtn {
font-size: 20px;
cursor: pointer;
background-color: #111;
color: white;
padding: 10px 15px;
border: none;
}
html {
scroll-behavior: smooth;
}
.openbtn:hover {
background-color:#444;
}
*{
box-sizing: border-box;
}
#sec1 {
}
#teacher {
}
#home {
}
#register{
}
.column {
background-color:#80ffff;
float: left;
width: 33.33%;
padding: 10px;
height: 300px;
}
.row:after {
background-color:#80ffff;
content: "";
display: table;
clear: both;
}
</style>
Output:
1. Home page
2. About page
3. Menu
4. Register Form
5. Login Form