0% found this document useful (0 votes)
101 views5 pages

Class 7 CH 6

it lecture notes

Uploaded by

digitechrise
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)
101 views5 pages

Class 7 CH 6

it lecture notes

Uploaded by

digitechrise
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/ 5

6 More on HTML5

TUK Activity (Page No. 108)


Answer in one word.
1. Which tag is used to set an image on the background of a

S
webpage?
<Body>

N
___________________________________________________________________
2. Which is the smallest heading size?

IO
<h6>
___________________________________________________________________
3. Which attribute defines the thickness of the horizontal line?
Size
___________________________________________________________________
4.
AT
Which tag is used to display the text in italics?
<i>….</i>
___________________________________________________________________
IC
TUK Activity (Page No. 115)
Create a webpage with the following content in HTML.
Parts of a computer system
BL

Input Device:
= Keyboard
= Mouse
PU

Output Device:
= Monitor
= Printer
Memory:
K

= RAM a temporary memory


= ROM a permanent memory
TU

<HTML>
<HEAD><TITLE> Parts of Computer </TITLE>
</HEAD>
<BODY>

Computer-7
<h1> <p align = "Center"> Parts of Computer System
</p> </h1>
<h2> <p align = "left"> Input Device </p> </h2>
<ul type = "circle">
<li> Keyboard </li>
<li> Mouse </li>

S
</ul>
<h2> <p align = "left"> Output device

N
</p></h2>

IO
<ul type = "circle" >
<li> Monitor </li>
<li> Printer </li>
</ul>
AT
<h2><p aling = "left"> Memory </p> </h2>
<ul type = "circle" >
IC
<li> RAM a temporary memory </li>
<li> ROM a permanent memory </li>
</ul>
BL

</BODY>
</HTML>

Exercises
PU

(A) Fill in the blanks with the help of the hints.


Empty Tags are not used in pairs.
1. _______________
Ordered List contains items in a numbered manner.
2. An ________________
<h1> tag is the largest heading used in an HTML document.
3. _________
K

Description List consists of two parts; one for defining the


4. __________________
TU

item name and another for defining the description of the item.

(B) Tick (✔) the correct answer.


1. ___________ tag helps you to insert a horizontal line on a web page.
a) ✔ <hr>tag b) <hl>tag c) <ho>tag

Computer-7
2. ________________ attribute of the <body> tag is used for setting
a background colour for the web page.
a) ✔ bgcolor
b) forecolor
c) background color
3. _________________ tags enclose the main contents of a web page.

S
a) <html> b) <head> c) ✔ <body>
4. The tag used for starting a new line is _____________.

N
a) ✔ <br> b) <nl> c) <l>

IO
(C) State whether these statements are True or False. Correct the
False statements also.

AT
1. The numbered list can be created using <ul> tag.
False. The numbered list can be created using <ol> tag.
___________________________________________________________________
2. The <HR> tag inserts a circle on a web page.
False. The <Hr> tag inserts a horizontal line on a web page.
___________________________________________________________________
IC
3. There are 5 levels of heading tags used for defining titles and
subtitles on a webpage.
False. There are 6 levels of heading tags used for defining
BL

___________________________________________________________________
titles and subtitles on a web page.
___________________________________________________________________
4. To bring text in the center of the web page, the tag used is <p
align ='middle'>.
PU

False. To bring text in the center of the web page, the tag
___________________________________________________________________
used is <p align=”center”>.
___________________________________________________________________

(D) Answer the following questions.


K

1. What is the difference between empty and container tags?


Explain with example.
Ans. Container Tags Empty Tags
TU

a. They are used in pairs. a. They are not used in pairs.


b. They have a starting tag b. They have only a starting
(ON tag) and ending tag tag (ON tag).
(OFF tag).
c. Example: To underline c. Example: To insert a line
your text, you use break, use <br>.
<u>…..</u>.
Computer-7
2. Differentiate between Ordered list tag and Unordered list
tag? Explain with example.
Ans. Ordered List Tag Unordered List Tag
a. An ordered list tag a. An unordered list tag
displays items in displays item in bulleted
numbered form. form.
b. <ol>…</ol> tag is used b. <ul>…</ul> tag is used

S
c. Ex. <ol type=”i”> c. Ex. <ul type=” ”>
<li>Bread</li> <li>Bread</li>

N
<li>Butter</li> <li>Butter</li>
</ol> </ul>

IO
d. Output d. Output
i Bread Bread
ii Butter Butter

3.
Ans. Heading Tags <hn>
AT
Explain heading tags along with examples.

This tag in HTML is used to specify headings and sub-


IC
headings of a webpage. <hn> is a container tag. There can
be 6 levels of heading starting from <h1> to <h6>. <h1>
is the largest heading while <h6> is the smallest heading.
BL

Example:
<h1>This is the largest heading size</h1>
<h2>Second largest</h2>
PU

<h3>Third largest</h3>
<h4>Fourth largest</h4>
<h5>Fifth largest</h5>
<h6>Sixth largest</h6>
K

Will give the output


4. Explain some attributes that are used with Font tag.
TU

Ans. Attributes used with the Font tag:


i. face is used to specify the font type for the text.
Syntax: <font face=”font type”>
Example: <font face=”comic sans ms”>
ii. color is used to specify the font colour for the text.

Computer-7
Syntax: <font face=”comic sans ms” color=”font
color”>
Example: <font face=”comic sans ms” color=”Red”>
iii. size is used to specify the font size for the text. The
font size is specified in numbers ranging from 1-7.

S
(E) Application based question
Kaira wants to create a webpage for her textbooks. Suggest the

N
HTML list tag she can use to get the desired result.
<ol>……… </ol> ordered list
_______________________________________________________________________

IO
AT
IC
BL
PU
K
TU

Computer-7

You might also like