Page 398 - Webapplication11_C11_Flipbook
P. 398
H2 {color: Green; font-family: Arial; font-size: 25px; text-align:
center}
</STYLE> </HEAD>
<BODY>
<H1>Computer</H1>
<P style="font-family: verdana; font-size: 1.5em">A computer is a versatile
machine that can be used to carry out a variety of tasks. For example, you
can do your homework, play games, listen to songs and do many other things
on a computer.</P>
<H2>Types of Computer</H2>
<P style="font-family:Arial Black; font-size: 1.5em">There are many types of
computers. Based on their size, the types of computers are, micro computer,
mini computer, mainframe computer and super computer.
</P>
</BODY>
</HTML>
Output:
3. Write an html program to show different margin properties.
Ans. <!DOCTYPE html>
<HTML>
<HEAD> <TITLE>Changing Margin</TITLE>
<STYLE>H1{font-family:Comic Sans MS; text-align:center;
text-Decoration:underline;color:green}
P{Margin-left:40px}
</STYLE> </HEAD>
<BODY><H1>Energy</H1>
<P style="font-family:Times New Roman; text-transform:uppercase">Energy is
the bcapacity for doing work. It may exist in potential, kinetic,thermal,
electrical,chemical,nuclear,or other various forms.</P>
<hr Size="10" width="80%" color="grey">
<P style="font-family:Times New Roman; text-transform:lowercase">Energy is
a requirement in our everyday life as a way of improving human development
leading to economic growth and productivity.</P>
396 Touchpad Web Applications-XI

