Page 176 - Computer Software Application TP - Volume 1
P. 176
COMPUTER SOFTWARE APPLICATION - CITS
</style>
</head>
<body>
<h1 class=”center”>This heading is red and center-aligned.</h1>
<p class=”center”>This paragraph is blue and right-aligned.</p>
<p class=”center”>This paragraph is blue and right-aligned.</p>
</body>
</html>
3 Save the program as a .html file
4 Open the html file with a web browser
5 Verify the output.
TASK 4: Using CSS Universal Selector
1 Open the text editor
2 Write the following codes
<html>
<head>
<style>
* {
color: green;
font-size: 20px;
}
</style>
</head>
<body>
<h2>This is heading</h2>
<p>This style will be applied on every paragraph.</p>
<p id=”para1”>Me too!</p>
<p>And me!</p>
</body>
</html>
3 Save the program as a .html file
4 Open the html file with a web browser
5 Verify the output.
161
CITS : IT & ITES - Computer Software Application - Exercise 44