Progressive Education Society’s
MODERN COLLEGE OF ENGINEERING, Pune -05.
(An Autonomous Institute Affiliated to Savitribai Phule Pune University)
MCA Department
Class: S. Y. MCA Div: A Course Code: MCA01605 Batch: S
Semester: 3rd Course Name: Web Programming Laboratory
Name: Yah Badgujar Roll No: 52003
CO No:CO606.1 Assignment No:2
Title :
Design external CSS to set the following rules and link in the HTML file.
a. Give Heading
b. Set paragraph with font size 13px
c. Set the text color as blue.
d. Set Heading text color as green.
Code :
Style.css :
/*heading text color as green*/
h1{
color :green;
/*paragraph font size 13px and colos as blue*/
p{
font size:13px;
color:blue;
Index.html :
<html>
<head>
<title>External CSS Example</title>
<!-- linking the external CSS file -->
<link rel="stylesheet" type="text/css" href="style.css">
Progressive Education Society’s
MODERN COLLEGE OF ENGINEERING, Pune -05.
(An Autonomous Institute Affiliated to Savitribai Phule Pune University)
MCA Department
</head>
<body>
<h1> This is Heading</h1>
<p> This is a paragraph with font size 13px and blue color. </p>
</body>
</html>
Output :