Professional Documents
Culture Documents
Name:Shivam
UID:20bcs7961
Section:20ITB-3
Q1:- Create an ordered list which should display the grocery items to be
purchased by a household. Include the miscellaneous items also in the least
priority list using unordered list.CSS list-style-type property should also be
included.
<body bgcolor="blue">
<h3>GROCERY ITEMS</h3>
<p style="font-size: large;">Important Items</p>
</body>
</body>
</html>
OUTPUT:
<title>Timetable</title>
</head>
<body>
<tr>
<td>10.00 - 10.45</td>
<td>Comm. Skills<br> (Practical)</td>
<td>Digital Electronics<br> (Theory)</td>
<td>C++<br> (Practical)</td>
<td>Comm. Skills<br> (Theory)</td>
<td>Calculus & Vector Spaces<br> (Theory)</td>
</tr>
<tr>
<td>11.00 - 11.45</td>
<td>Comm. Skills<br> (Practical)</td>
<td>Computer Workshop<br> (Practical)</td>
<td>C++<br> (Practical)</td>
<td>C++<br> (Theory)</td>
<td>C++<br> (Theory)</td>
</tr>
<tr>
<td>12.00 - 12.45</td>
<td bgcolor="cyan"> //LUNCH BREAK//</td>
<td>Computer Workshop<br> (Practical)</td>
<td>Biology<br> (Practical)</td>
<td>C++<br> (Practical)</td>
<td>C++<br> (Practical)</td>
</tr>
<tr>
<td>12.45 - 1.30</td>
<td>IOT <br> (Practical)</td>
<td bgcolor="cyan">//LUNCH BREAK//</td>
<td bgcolor="cyan">//LUNCH BREAK//</td>
<td bgcolor="cyan">//LUNCH BREAK//</td>
<td bgcolor="cyan">//LUNCH BREAK//</td>
</tr>
<tr>
<td>1.45 - 2.30</td>
<td>IOT <br> (Practical)</td>
<td>Digital Electronics<br> (Theory)</td>
<td>Digital Electronics<br> (Practical)</td>
<td>Life skills<br> (Practical)</td>
<td>Biology<br> (Practical)</td>
</tr>
<tr>
<td>2.45 - 3.30</td>
<td>Biology <br> (Practical)</td>
<td>Comm. skills<br> (Theory)</td>
<td>Digital Electronics<br> (Practical)</td>
<td>Calculus & Vector Spaces<br> (Theory)</td>
<td>Digital Electronics<br> (Theory)</td>
</tr>
<tr>
<td>3.45 - 4.30</td>
<td>no class</td>
<td>Calculus & Vector Spaces<br> (Theory)</td>
<td>Calculus & Vector Spaces<br> (Theory)</td>
<td>no class</td>
<td>Calculus & Vector Spaces<br> (Theory)</td>
</tr>
</table>
</body>
</html>
OUTPUT:-
Q3:- Create a webpage to display chemical formula of water. Also include the
mathematical formula of (x+y)^2=x^2+y^2+2xy. Also include your favorite quote
in this page which should be displayed in the red color and its should have font-
size 20px and font family as Times New Roman.
CODE:- <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Formulas</title>
</head>
<body>
<div style="text-align: center;">
<h2>Formulas</h2>
<P>Chemical formula of water is : H<sub>2</sub>O</P>
<p>(x+y)<sup>2</sup> = x<sup>2</sup>+y<sup>2</sup>+2xy</p>
<br><br>
<h3>My favorite quote</h3>
<p style="color: red; font-size: 20px; font-family: 'Times New Roman', Times,
serif;">
If not you, who? If not now, when?
<br><br><b>-John F. Kennedy</b>
</p>
</div>
</body>
</html>
OUTPUT:-
Q4:- Create a page with the help of HTML Colors and HTML CSS which will help
you in displaying different paragraphs with different background colors and
different fonts. take help of Styling using Class and Id feature.
CODE:- <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>styling</title>
</head>
<body>
<style>
.red{background-color: red; color: powderblue;font-size: small;font-family:
Arial, Helvetica, sans-serif;}
p.purple{ background-color:rebeccapurple; color: plum;font-size:
medium;font-family: Verdana, Geneva, Tahoma, sans-serif;}
#green{background-color: green; color:seashell;font-size: large;font-family:
'Times New Roman', Times, serif;}
</style>
</body>
</html>
OUTPUT:-
Q5:- Design a computer science department web page for department which
includes all the features/options like activities held in department, syllabus for all
semesters, results etc.
Code:- <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ASSIGNMENT-5</title>
<style>
body{
/* background-image: url("index.jpg"); */
background-image: url(https://wallpaperaccess.com/full/2276817.jpg); }
h1{
text-align: center;
color: white;
font-size: xx-large;
}
p{
text-decoration: wavy;
color: white;
}
a:link, a:visited {
background-color: #f44336;
color: white;
padding: 14px 25px;
text-align: center;
}
a:hover, a:active {
background-color: grey;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover {
background-color: #111;
}
marquee{
background-color: wheat;
</style>
</head>
<body>
<h1>COMPUTER SCIENCE DEPARTMENT</h1>
<ul>
<li><a class="active" href="a.html">Home</a></li>
<li><a href="b.html">Syllabus</a></li>
<li><a href="demo.html">Activities</a></li>
<li><a href="c.html">Result</a></li>
<li><a href="abc.html">Contact Us</a></li>
</ul>
<
<marquee width="100%" direction="left" height="30px">
NEWS - NEWS NEWS - NEWS NEWS - NEWS :: result for final semster is
declared////
Tech quiz for third semester registration portal open for student
</marquee>
<p style="color: black; font-size: 30px;"><b>NOTE: this is sample
text</b></p>
</body>
</html>
OUTPUT:-