Class Vii Term 2
Class Vii Term 2
Ans. HTML Tags are instructions that are enclosed within open and
close tags or angle brackets. They are generally of two types. They
are:-
KV BARGARH-CLASS-VII Page 2
No3. Differentiate between Paired Tags and Unpaired Tags?
Ans.
KV BARGARH-CLASS-VII Page 3
No4. Write the steps for creating and saving the HTML document?
Ans. The Steps for creating and saving the HTML documents are as
follows:-
Ans. The Heading tag is used for visual emphasis and to logically
partition a document. These tags are also called as ‘Headers’.
There are six (06) levels of heading tags starting from <H1> to
<H6>. The text size goes on decreasing from <H1> to <H6>. The
heading tags are paired tags and placed inside the <BODY> tag in
a HTML document.
KV BARGARH-CLASS-VII Page 4
No6. Write the example of Heading Tag used in HTML?
<HTML>
<HEAD>
<TITLE> TESTING HEADING TAGS </TITLE>
</HEAD>
<BODY BGCOLOR="GREEN">
<MARQUEE BEHAVIOR="ALTERNATE">
<H1> THIS IS H1 TAG </H1>THIS IS NORMAL
<H2> THIS IS H2 TAG </H2> THIS IS NORMAL
<H3> THIS IS H3 TAG </H3> THIS IS NORMAL
<H4> THIS IS H4 TAG </H4> THIS IS NORMAL
<H5> THIS IS H5 TAG </H5> THIS IS NORMAL
<H6> THIS IS H6 TAG </H6> THIS IS NORMAL
</MARQUEE>
</BODY>
</HTML>
Ans. The <BR> tag is known as Line Break tag. This tag is used to insert
single line break within the text. <BR> is an example of empty tag or
singular tag. It does not require the closing tag. The <P> tag or
paragraph tag may insert spaces between lines but line break tag <BR>
tag only inserts single line space.
KV BARGARH-CLASS-VII Page 5
No8. Write the example of <BR> Tag used in HTML?
<HTML>
<HEAD>
<TITLE> TESTING LINE BREAK TAG </TITLE>
</HEAD>
<BODY BGCOLOR="YELLOW">
The following lists of Browsers are: <BR>
<B>
GOOGLE CHROME<BR> MICROSOFT EDGE
<BR> MOZILA FIREFOX <BR> OPERA MINI <BR>
UC BROWSER <BR> INTERNET EXPLORER<BR>
NETSCAPE NAVIGATOR<BR> TOR BROWSER <BR>
</B>
</BODY>
</HTML>
Ans. The <HR> tag stands for Horizontal Rule. It creates a horizontal bar
to partition the window of the browser. The <HR> tag is also an empty
tag or singular tag like the <BR> tag.
Syntax-
Line thickness and Line Width sets the basic appearance of the <HR>
tag.
KV BARGARH-CLASS-VII Page 6
No10. Write the example of <HR> Tag used in HTML?
<HTML>
<HEAD>
<TITLE> TESTING HORIZONTAL RULE TAG </TITLE>
</HEAD>
<BODY BGCOLOR="AQUA">
The following lists of Browsers are:
<br> <B>
GOOGLE CHROME<BR> MICROSOFT EDGE
<BR> MOZILA FIREFOX <BR> OPERA MINI <BR>
UC BROWSER <BR> INTERNET EXPLORER<BR>
NETSCAPE NAVIGATOR<BR> TOR BROWSER <BR>
<HR SIZE= 10 WIDTH=100% COLOR= “BLUE”>
The following lists of email providers are : <BR>
Gmail.com<BR> Rediffmail.com <BR> Yahoo.com<BR>
</B>
</BODY>
</HTML>
KV BARGARH-CLASS-VII Page 7
No11. Describe about comment Tag used in HTML?
SYNTAX-
<! --This is a comment. Comments are not displayed in the browser--
>
EXAMPLE
<!--
SYNTAX-
<HTML>
<HEAD>
<TITLE> TESTING BACKGROUND COLOUR
</TITLE> </HEAD>
<BODY BGCOLOR="FUCHSIA">
<B>
<H1> This Page has fuchsia background </H1>
</B>
</BODY>
</HTML>
No15. Describe <FONT> Tag and its attributes used in HTML?
Ans. The <FONT> tag sets the font size, font face and font color of
the letters. It has 3 attributes: -
<HTML>
<HEAD>
<TITLE> TESTING FONT TAG ATTRIBUTES</TITLE>
</HEAD>
<BODY BGCOLOR="AQUA">
<H1> My First Webpage </H1>
<FONT SIZE= “4” FACE= “ARIAL” COLOR=
“BLUE”> WELCOME TO MY WEBPAGE <BR>
Creating web pages using HTML is very easy<BR>
</FONT>
</BODY>
</HTML>
KV BARGARH-CLASS-VII Page 10
HTML-2
Sl. Units Contents
No
.
Paragraph Tag <p> with
3 HTML-2 Align
attributes
<OL> Tag
<UL> Tag
Image Insertion <IMG> tag
with
<ALT> and <SRC> attribute,
Creation of table with
<TABLE> Tag
Anchor Tag <A> Tag
<HREF> Tag Hyperlinking
KV BARGARH-CLASS-VII Page 11
HTML-2
No1. Define <P> Tag and its attributes used in HTML.
Ans. The <P> tag is used to display the spacing between two paragraphs
in the Webpage. It breaks the paragraph. The <ALIGN> attribute is
included to make the paragraph Left, Right, Justify or Center aligned:-
No2. Write an example of <P> Tag and its attributes used in HTML.
Ans. The Example of <P> Tag along with it’s, align attributes is as
follows:-
<HTML>
<HEAD>
<TITLE> TESTING ALIGN ATTRIBUTES OF PARAGRAPH
TAG</TITLE> </HEAD>
<BODY BGCOLOR="AQUA">
<PALIGN= “LEFT”> This is the First Paragraph and it is left aligned. Left
alignment aligns the paragraph evenly on the left side of the web page.
The text on the right side remains uneven </P>
<PALIGN= “CENTER”> This is the Second Paragraph and it is center
aligned. Center alignment aligns the paragraph to the middle of the
page with equal amount of space on both left and right side</P>
<PALIGN= “RIGHT”> This is the Third Paragraph and it is right aligned.
Right alignment aligns the paragraph evenly on the right side of the
web page. The text on the left side remains uneven </P>
<PALIGN= “JUSTIFY”> This is the Fourth Paragraph and it is Justify
aligned. Justify alignment aligns the paragraph evenly on both left side
and right side of the web page. This is the most popular alignment and
seen in many newspaper and magazines </P> </BODY>
</HTML>
No3. Define <OL> Tag and its <Type> attributes used in HTML.
Ans. The <OL> Tag stands for Ordered List. It is basically used to
display a list of items in a specific order. The predefined list can be
changed to the following formats given below:-
The <LI> tag List Item tag is used to insert the content of the list.
No4. Write an example of <OL> Tag with 2 items for each <Type>
attributes.
<HTML>
<HEAD>
<TITLE> TESTING OL TAG WITH TYPE ATTRIBUTES </TITLE>
</HEAD>
<BODY BGCOLOR="AQUA">
<H1>SPORTS NAME </H1>
<OL TYPE= A>
<LI> CRICKET
<LI> FOOTBALL
</OL>
<H1>SUBJECT NAME </H1>
<OL TYPE= a>
<LI> MATHS
<LI> SCIENCE
</OL>
<H1>EMINENT PERSONALITIES
</H1> <OL TYPE= I>
<LI> SUBHASH CHANDRA BOSE
<LI> BHAGAT SINGH
</OL>
<H1>FLOWER NAME </H1>
<OL TYPE= i>
<LI> ROSE
<LI> LAVENDAR
</OL>
<H1>FAMOUS TEMPLES </H1>
<OL TYPE= 1>
<LI> KONARK TEMPLE
<LI> SWAMI PADMANABHAN TEMPLE
</OL>
</BODY>
</HTML>
No5. Define <UL> Tag and its <Type> attributes used in HTML.
Ans. The <UL> Tag is basically an Unordered List. This tag is used
when the items are not displayed in a particular sequence. Such types
of list are known as Unordered List. The Type attributes specifies the
type of bullets or symbols that are to be displayed in an unordered
list. There are 3 types of type attributes of <UL> tag. The type
attributes are as follows:-
No6. Write an example of <UL> Tag with 2 items for each <Type>
attributes.
<HTML>
<HEAD>
<TITLE> TESTING UL TAG WITH TYPE ATTRIBUTES
</TITLE> </HEAD>
<BODY BGCOLOR= “AQUA”>
<H1>FRUITS NAME </H1>
<UL TYPE= SQUARE>
<LI> APPLE
<LI> BANANA
</UL>
<H1>VEGETABLE NAME </H1>
<UL TYPE= CIRCLE>
<LI> SPINACH
<LI> CARROT
</UL>
<H1>FLOWER NAMES </H1>
<UL TYPE= DISC>
<LI> ROSE
<LI> TULIP
</UL>
</BODY>
</HTML>
No7. How do you create a TABLE in HTML? What are the attributes
that are used with <TABLE> tag?
Ans. Table in HTML are created by the help of <TABLE> tag and its
attributes. The following attributes of the <TABLE> are as follows: -
<TR>… </TR>: The <TR> or Table Row denotes the beginning of
the row and the </TR> tag denotes the ending of the row in a
table.
<TH>… </TH>: The <TH> or Table Header denotes the table
column name or Heading, whereas </TH> denotes the ending of
the table header.
<TD>… </TD>: The <TD> or Table Data denotes the column value
in each row and </TD> denotes the ending of the Table Data.
**The <TR> tag is defined within the <TABLE> tag. As the columns are
inside the table rows so the <TH> and <TD> are defined inside the <TR>
tag.
No8. Write an example of <TABLE> tag with all the three attributes
that are used with <TABLE> tag?
<HTML>
<HEAD>
<TITLE> TABLE WITH 03 ATTRIBUTES
</TITLE> </HEAD>
<BODY BGCOLOR= “AQUA”>
<TABLE>
<TR>
<TH> NAME</TH>
<TH> CLASS</TH>
<TH>MARKS</TH>
</TR>
<TR>
<TD> Saroj </TD>
<TD> VII </TD>
<TD> 95 </TD>
</TR>
<TR>
<TD> Bijay </TD>
<TD> VIII </TD>
<TD> 80 </TD>
</TR>
</TABLE>
</BODY>
</HTML>
No15. Write an example of <TABLE> tag with Table Border?
Ans. The example of <TABLE> Tag with Table Border is as follows: -
<HTML>
<HEAD>
<TITLE>HTML TABLES WITH BORDER</TITLE>
</HEAD>
<BODY>
<TABLE BORDER = "1">
<TR>
<TD>ROW 1, COLUMN 1</TD>
<TD>ROW 1, COLUMN 2</TD>
</TR>
<TR>
<TD>ROW 2, COLUMN 1</TD>
<TD>ROW 2, COLUMN 2</TD>
</TR>
</TABLE>
</BODY>
</HTML>