KEMBAR78
Class 7 HTML - Part1 | PDF
0% found this document useful (0 votes)
21 views9 pages

Class 7 HTML - Part1

The document contains HTML programming exercises for class 6, focusing on creating web pages with various formatting elements. It includes examples of HTML code to create paragraphs, apply text styles like bold and italics, change font and background colors, and display specific text. Each program demonstrates different HTML features and their usage in web development.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views9 pages

Class 7 HTML - Part1

The document contains HTML programming exercises for class 6, focusing on creating web pages with various formatting elements. It includes examples of HTML code to create paragraphs, apply text styles like bold and italics, change font and background colors, and display specific text. Each program demonstrates different HTML features and their usage in web development.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

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>

You might also like