Page 397 - Webapplication11_C11_Flipbook
P. 397
Practical Work
#Computational Thinking
#Creativity
HTML/CSS #Life Skills & Values
1. Write a program to print a paragraph with different font and color.
Ans. <!DOCTYPE html>
<html>
<body>
<p>
<font face="Arial" color="red">
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
</font>
<font face="Times New Roman" color="blue">It is the core
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
</font>
<font face="Verdana" color="green">
It has survived not only five centuries.
</font>
<font face="Helvetica" color="orange">
It is a long established fact that a reader will be distracted by the
readable content of a page when looking at its layout.
</font>
</p>
</body
</html>
Output:
2. Write a program in html to show different font properties.
Ans. <!DOCTYPE html>
<HTML> <HEAD> <STYLE>
H1 {color: blue; font-family: verdana; font-size: 32px; text-align:
center}
Practical Work 395

