Professional Documents
Culture Documents
CSS.
Solution:
File : InlineCss.html
<html>
<head>
<title> Inline CSS </title>
</head>
<body>
<h1 style="color:red; font-family:Arial;">
Inline CSS-1
</h1>
<h1 style="color:blue; font-family:Time New Roman;">
Inline CSS-2
</h1>
<h2 style="color:green; font-family:Verdana;">
Inline CSS-3
</h2>
</body>
</html>
Output :
(2) Internal CSS
File : InternalCss.html
<html>
<head>
<title> Internal CSS </title>
<style type="text/css">
h1{color:red; font-family:Arial;}
h2{color:blue; font-family:Arial;}
</style>
</head>
<body>
<h1> Internal CSS </h1>
<h2> Internal CSS </h2>
<h1> Internal CSS </h1>
<h1> Internal CSS </h1>
<h2> Internal CSS </h2>
<h2 style="color:green; font-family:Arial;"> Internal CSS </h2>
</body>
</html>
Output :
(3) External CSS
File : ExternalCss.html
<html>
<head>
<link rel="stylesheet" type="text/css" href="style-1.css" />
<link rel="stylesheet" type="text/css" href="style-2.css" />
</head>
<body>
<h1> External CSS-1</h1>
<h2> External CSS-2</h2>
</body>
</html>
style-1.css
h1{color:red; font-family:Arial;}}
style-2.css
h2{color:blue; font-family:verdana;}
Output:
Assessment Rubric:
Parameter of
Poor - 1 Fair - 2 Good - 4 Excellent - 5
Assessment
Faculty Comments: