Cma PMS
Cma PMS
<!DOCTYPE html>
<html>
<head>
<title>Inline CSS</title>
<style>
p{
color:red;
font-size:50px;
font-style:italic;
text-align:center;
}
</style>
</head>
<body>
<p>
Computer Multimedia and Animation……………
</p>
<p>C Programming language, C++ Programming language…….</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Internal CSS</title>
<style>
.s1 {
text-align: center;
}
.s2 {
color: red;
font-size: 50px;
font-weight: bold;
}
.s3 {
font-style: bold;
font-size: 20px;
}
</style>
</head>
<body>
<div class="s1">WELCOME</div>
<div class="s2">computer multimedia and animation programming language……….</div>
<div class="s3">A computer science portal for geeks
</div>
</body>
</html>
3.Write a HTML program to implement external CSS.
body {
background-color: powderblue ;
}
P{
text-align: center;
}
h1 {
color: red;
font-size: 50px;
font-weight: bold;
}
h2 {
font-style: bold;
font-size: 20px;
}
Below code should be written in another file and save the file as .html
<!DOCTYPE html>
<html>
<head>
<title>Internal CSS</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<p>CMA</p>
<h1> Computer Multimedia & Animation/h1>
<h2>Cloud Computing…</h2>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<style>
#para1 {
text-align: center;
color: red;
}
</style>
</head>
<body>
<p id="para1">Hello World!</p>
<p>This paragraph is not affected by the style.</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<style>
.center {
text-align: center;
color: red;
}
</style>
</head>
<body>
<h1 class="center">Red and center-aligned heading</h1>
<p class="center">Red and center-aligned paragraph.</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<style>
*{
text-align: center;
color: blue;
}
</style>
</head>
<body>
<h1>Hello world!</h1>
<p>Every element on the page will be affected by the style.</p>
<p>Me too!</p>
<p>And me!</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<style>
ul.a {
list-style-type: circle;
}
ul.b {
list-style-type: square;
}
</style>
</head>
<body>
<h2>The list-style-type Property</h2>
<p>Example of unordered lists:</p>
<ul class="a">
<li>Coffee</li>
<li>cold coffee</li>
<li>Coca Cola</li>
</ul>
<ul class="b">
<li>Coffee</li>
<li>cold Tea</li>
<li>Coca Cola</li>
</ul>
</body>
</html>
9.Write HTML program to implement styles for ordered lists.
<!DOCTYPE html>
<html>
<head>
<style>
ol.c {
list-style-type: upper-roman;
}
ol.d {
list-style-type: lower-alpha;
}
</style>
</head>
<body>
<h2>The list-style-type Property</h2>
<p>Example of unordered lists:</p>
<ul class="a">
<li>Coffee</li>
<li>cold coffee</li>
<li>Coca Cola</li>
</ul>
<ul class="b">
<li>Coffee</li>
<li>cold Tea</li>
<li>Coca Cola</li>
</ul>
<p>Example of unordered lists:</p>
<p>Example of ordered lists:</p>
<ol class="c">
<li>Coffee</li>
<li>pepsi</li>
<li>Coca Cola</li>
</ol>
<ol class="d">
<li>Coffee</li>
<li>samosa</li>
<li>Coca Cola</li>
</ol>
</body>
</html>
13. Setting a background image for a page and setting the text, background colour using CSS.
<html>
<head>
<title></title>
<style>
body{
background-image : url("IMG_7537.gif");
background-color:lightorange;
color: darkindigo;
text-align:right;
margin: 40px;
border-style: dashed;
}
</style>
</head>
<body>
<h1>Journal program -06 Program to set background image, color and set the text using
CSS</h1>
<h1> CSS Program to set background image for the page , setting the text, background
color</h1>
</body>
</html>
14.
Journal program (06): Setting a background image for a page and setting the text,
background colour using CSS.
<html>
<head>
<title></title>
<style>
body{
background-image : url("IMG_7537.gif");
background-color:lightpink;
color: darkmagenta;
text-align:center;
margin: 50px;
border-style: dotted;
}
</style>
</head>
<body>
<h1>Journal program -06 Program to set background image, color and set the text using
CSS</h1>
<h1> CSS Program to set background image for the page , setting the text, background
color</h1>
</body>
</html>