Lab 5..
Lab 5..
Faculty of Engineering
Web Engineering
Session (2017-2021)
LAB 5
Class: Instructor:
Objective:
To use CSS in HTML page.
Pre Lab:
CSS BASICS:
Inline Css:
<html>
<head>
<title>Exercise - 1</title>
</head>
<body>
<p style="font-family:'times new roman';font-size:20px;font-
weight:bold;color:green">Hello World</p>
</body>
</html>
Output: ??
Embedded CSS:
<html>
<head>
<title>Exercise - 1</title>
<style>
#embpara
{
font-family:'times new roman';
font-size:20px;
font-weight:bold;
color:green
}
</style>
</head>
<body>
<p id="embpara">My Name is XYZ, I am a student of BSc
Computer Engineering</p>
</body>
</html>
Output?
External CSS:
ex1.html
ex1style.css
#extpara
{
font-family:'times new roman';
font-size:20px;
font-weight:bold;
color:green
}
LAB TASK 1:
Complete the code and write down the output
LAB TASK 2:
Create a webpage which displays the class time table and apply the following effects
on the table:
For the table header apply blue as the background colour and white for the
colour of the text in the table header.
Display day names (Mon, Tue etc...) in bold format with the first letter in the
day name in uppercase.
Display lunch slightly in bigger font other than the remaining text.
LAB TASK 3:
Create a webpage to manage personal details like name, class, qualifications, photo,
address etc., using tables and other suitable HTML tags. Apply the following style
information:
Display the heading of the page in Times New Roman font and with 24px size.
Align all the field names like Name, Class, Photo etc to right in the table.
Apply light blue as background colour for the left side cells in the table which
contains field names like Name, Class etc...
Also display your college logo as background image in the top right position of
the web page.