0% found this document useful (0 votes)
34 views22 pages

Class Vii Term 2

Uploaded by

kvbsd13
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views22 pages

Class Vii Term 2

Uploaded by

kvbsd13
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 22

TERM-2 SYLLABUS FOR COMPUTER-VII

Sl. Units Contents


No
.
1 HTML Heading (H1 to H6)
<Br> tag, <hr>
tag ,<comment>
Background Color ,font
tag(size,
face, color)
Text alignment (center, left
,
right)
KV BARGARH-CLASS-VII Page 1
HTML
No.1. What is HTML?

Ans. HTML is a coding language to develop webpages of a website. It is


mostly used for designing websites. HTML stands for Hyper Text
Markup Language. Its coding is written in a notepad and saved
with dot (.) html extension name. The coding may be written in
small or capital letter. HTML coding are always enclosed with
open and close angle brackets < > known as “Tags” for example
<HTML>. HTML coding was developed by Mr. Tim Berner Lee, who
is also known as founder of WWW (World Wide Web).

No2. What are HTML Tags?

Ans. HTML Tags are instructions that are enclosed within open and
close tags or angle brackets. They are generally of two types. They
are:-

1) Paired Tags/ Companion Tags.


2) Unpaired Tags/ Singular Tags.

KV BARGARH-CLASS-VII Page 2
No3. Differentiate between Paired Tags and Unpaired Tags?

Ans.

PAIRED TAGS UNPAIRED TAGS


These are also known as These are known as Singular
Companion Tags Tags or Empty Tags.
It Contains both Open and Close It only contains the Open Tag.
Tags.
These are more in numbers. These are less in numbers.
The Open Tag activates the The Open tag only activates
effect and the Close Tag the effect of the tag.
deactivates the effect.
Example of Paired Tag Example of Unpaired Tag

<HTML>, </HTML> <BR>


<BODY>, </BODY> <HR>
<TITLE>, </TITLE> <LI>

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:-

I. Open the Notepad from Start-> All Programs-> Accessories->


Notepad.
II. Type the HTML coding inside the notepad file.
III. Click File menu in the Notepad.

V. Save As will appear on the screen.


VI. In the File Name box, type the file name followed by the extension
dot(.) html for example- myhtmlpage.html
VII. Browse the location in the computer to save the file.
VIII. Finally click the Save button to save the html file.

No5. Describe the Heading Tag used in HTML?

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?

Ans. The Example of Heading Tag is as follows:-

<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>

No7. Describe about the <BR> tag used in 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?

Ans. The Example of <BR> Tag is as follows:-

<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>

No9. Describe about the <HR> tag used in 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-

<HR SIZE=line thickness WIDTH=line width % COLOR= “colour name”>

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?

Ans. The Example of <HR> Tag is as follows:-

<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?

Ans. Comments are used to insert lines for reference to the


programmer. The information written within comments are not
displayed in the browser. Comments are not restricted to one line and
can be of any length. The comment can be inserted by the following
given below: -

SYNTAX-
<! --This is a comment. Comments are not displayed in the browser--
>

EXAMPLE

<!--

The comment can be inserted by placing an exclamation mark followed


by two hyphen and then ending the comment by placing double
hyphen and closing the angle bracket. The code written inside
comment are ignored by the browser.-->

No12. Write the example of Comment <! --_______--> Tag used in


HTML?
Ans. The Example of Comment Tag is as follows:
- <HTML>
<HEAD>
<TITLE> WRITING COMMENTS
</TITLE> </HEAD>
<BODY BGCOLOR="AQUA">
<B>
I am learning HTML
<! --This is a comment. Comments are not displayed in the browser-->

GOOGLE CHROME<BR> MICROSOFT EDGE <BR>


MOZILA FIREFOX <BR> OPERA MINI <BR>
</B>
</BODY>
</HTML>

No13. Describe about <BGCOLOR> attribute of <BODY> tag used in


HTML?

Ans. The<BGCOLOR> is a special attribute tag used with <BODY> tag. It


is used to set the back ground colour of a webpage. There are several
colours which can be included in this tag like- Aqua, Red, Green, Blue,
Violet, Fuchsia, Grey, Lime, Maroon, Navy, Olive, Purple, Silver, Teal,
White, Yellow, etc.

SYNTAX-

<BODY BGCOLOR= “COLOUR NAME”>

No14. Write the example of <BGCOLOR> attribute of <BODY>Tag used


in HTML?

Ans. The Example of <BGCOLOR> attribute is as follows: -

<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: -

1) SIZE- The size ranges from 1 to 7 where 1 is the smallest font


size and 7 is the largest font size. Default size is 3.
2) FACE- it is used to specify the types of letter or font for the
webpage from the given list of fonts.
3) COLOR- it is used to display the colours for the font or the letter.

No16. Write <FONT> Tag and its attributes used in HTML?

Ans. The Example of <FONT> Tag attribute is as follows: -

<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:-

The different align attributes of <P> tag is as follows:-

 <P ALIGN= “LEFT”>


 <P ALIGN= “RIGHT”>
 <P ALIGN= “CENTER”>
 <P ALIGN= “JUSTIFY”>

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:-

i. <OL TYPE= A> - used for Capital Letters


ii. <OL TYPE= a > - used for small letters.
iii. <OL TYPE= I> - Capital Roman Numerals.
iv. <OL TYPE= i> - Small Roman Numerals.
v. <OL TYPE= 1> - Default Number Pattern.

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.

Ans. The example of <OL> Tag is as follows: -

<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:-

i. <UL TYPE= SQUARE>- used for Square Bullets/ Symbols


ii. <UL TYPE= CIRCLE>- used for Circular Bullets/ Symbols.
iii. <UL TYPE= DISC>- used for Filled Circular Bullets.
The <DISC> attribute is default attribute.

No6. Write an example of <UL> Tag with 2 items for each <Type>
attributes.

Ans. The example of <UL> Tag is as follows: -

<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?

Ans. The example of <TABLE> Tag is as follows: -

<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>

No16. Write an example of <TABLE> tag with Table Heading and


Border?
Ans. The example of <TABLE> Tag with Table Border is as follows: -
<HTML>
<HEAD>
<TITLE>HTML TABLE HEADER</TITLE>
</HEAD>
<BODY>
<TABLE BORDER = "1">
<TR>
<TH>NAME</TH>
<TH>SALARY</TH>
</TR>
<TR>
<TD>RAMESH RAMAN</TD>
<TD>5000</TD>
</TR>
<TR>
<TD>SAROJ DASH</TD>
<TD>7000</TD>
</TR>
</TABLE>
</BODY>
</HTML>

You might also like