Date: God is one
Chapter 4
Using Lists, Images and Links
Revision of HTML(class 6)
Program 1
Write a HTML code to create two paragraphs. Both the
paragraphs should be center aligned. There should be
a heading as “Computers” at the top of webpage. Give
the title of webpage as ‘Definition of Computers’
(Select the paragraphs related to Computers of your
choice)
Answer
<!doctype html>
<html>
<head>
<title>Definition of Computers</title>
</head>
<body>
<h1>Computers</h1>
<p align="center">
A Computer is a machine , which accepts input from the user and
processes it as per the
instructions
</p>
<p align="center">
Earlier, Computers were used by engineers and scientists.
</P>
</body>
</html>
Program 2
Write a HTML code to display the following text using
bold,italics and underline tags.
CMS MOTTO------to be in Bold and Underline
Jai Jagat--------------Normal text
CMS MISSION-----to be in Bold and Underline
To make every child good and smart.-------to be in Italics
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE>CMS MOTTO AND MISSION</TITLE>
</HEAD>
<BODY>
<B><U>CMS MOTTO</U></B>
<BR>Jai Jagat<BR>
<B><U>CMS MISSION</U></B>
<BR>
<I>To make every child good and smart</I>
</BODY>
</HTML>
Program 3
Write a HTML code to display the following text-
“Everyday, in every way, I am getting better and better.”
The text should be displayed in “Verdana” font and
should be of size as 5.
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE>CMS SLOGAN</TITLE>
</HEAD>
<BODY>
<P>
<FONT FACE=“VERDANA” SIZE=“5”>
Everyday, in every way I am getting better and better.
</FONT>
</P>
</BODY>
</HTML>
Program 4
Write a HTML code to change the background color of
web page to pink and the color of text to be set as red.
Display the text-”God is great”
<HTML>
<HEAD>
<TITLE>CHANGING BACKGROUND COLOR</TITLE>
</HEAD>
<BODY BGCOLOR="PINK">
<P>
<FONT COLOR="RED">
God is great
</FONT>
</P>
</BODY>
</HTML>