Class 8 CH 3
Class 8 CH 3
S
1. Which attribute of marquee tag is used to change the type of
scrolling?
N
behavior
___________________________________________________________________
2. Which tag is used to align text or image in the center?
IO
<center>
___________________________________________________________________
3. Which character is used to indicate the closing tag in HTML?
/
AT
___________________________________________________________________
4. What is the extension of an HTML file?
.html
___________________________________________________________________
IC
TUK Activity (Page No. 52)
BL
Computer-8
<HTML>
<HEAD><TITLE> Fruit </TITLE></HEAD>
<BODY>
<Table border=4 bgcolor="Yellow" Cellspacing=3 width=70%>
<tr>
S
<th>Fruit</th>
<th>Color</th>
N
<th>Taste</th>
IO
</tr>
<tr>
<td>Apple</td>
<td>Red</td>
<td>Sweet/Sour</td>
</tr>
<tr>
AT
IC
<td>Orange</td>
<td>Orange</td>
BL
<td>Sour</td>
</tr>
<tr>
<td>Banana</td>
PU
<td>Yellow</td>
<td>Sweet</td>
</tr>
<tr>
K
<td>Grapes</td>
<td>Green</td>
TU
<td>Sweet/Sour</td>
</tr>
</Table>
</Body>
</HTML>
Computer-8
TUK Activity (Page No. 57)
Fill in the blanks.
1. A hyperlink can be used to link a webpage to an internal as well
external page.
as ___________
2. Cell spacing attribute of <table> defines the space between
_________________________
cell data and border.
S
3. super script tag.
To display a2, we will use ________
4. src attribute of <img> tag specifies the source of the image.
____
N
Exercises
IO
(A) Fill in the blanks with the help of the hints.
<src> attribute to define the source of an
1. In HTML we use _______
image.
2.
3.
4.
______
____
AT
<tr> tag allows you to add a row in a table.
alt attribute of <img> tag displays the alternate text.
<sup> is used to display power in expression(A+B)2.
________
IC
(B) Tick (✔) the correct answer.
BL
a) Internet Explorer
b) ✔ Microsoft Zing
c) Mozilla
4. Pick the odd one out.
a) Table b) Tr c) ✔ Form
Computer-8
5. What tag is used to display a picture in a webpage?
a) ✔ img b) src c) alt
(C) State whether these statements are True or False. Correct the
False statements also.
1. To add a caption to a table, you use the caption attribute in the
S
opening table tag.
True
___________________________________________________________________
N
2. Name attribute in a frame tag indicates which frame a
document should be loaded into.
IO
False. src attribute in a frame tag indicates the frame a
___________________________________________________________________
document should be loaded into.
___________________________________________________________________
3. <td> is used to store table records.
4.
AT
False. <td> is used to insert data in table.
___________________________________________________________________
A group of frames is called a frameset.
True
___________________________________________________________________
IC
5. An internal style sheet is used to change the look of an entire
website by changing one file as it defines the style for multiple
HTML pages.
BL
Computer-8
3. <tr> and <td>
<tr> tag is used to add a row to the table and <td> tag is used to
add data to the cells of a row.
S
Ans. It is used to display a text message when an image
cannot be loaded.
N
2. Can we use only text as a hyperlink?
Ans. No, it can also apply to an image.
IO
3. Do all tags come in a pair?
Ans. No
4.
Ans.
5.
AT
What is a marquee tag?
Marquee tag is used to scroll text in a web page.
Does the <th> tag always need to come at the start of a
row or column?
IC
Ans. <th> defines the header row of a table, so it should
come where a heading is required.
6. How do you set a border in a table?
BL
<table>
<tr>
<th>….</th>
<th>….</th>
</tr>
Computer-8
<tr>
<td>….</td>
<td>….</td>
</tr>
.
.
S
.
N
</table>
The above given code will create a table of 2 columns and
IO
rows depending on how many <tr> are used.
2. Describe different types of hyperlinks, with their syntax.
Ans. There can be three types of hyperlinks:
AT
i. Link to connect two webpages
ii. Link to connect two sections of the same webpage
iii. Website links and email links
IC
a. Link to connect two webpages
For this type of link, we have to specify the address
and location of a webpage to which the hyperlink
BL
has to be linked.
Syntax: <A href = "filename.html"> text </A>
b. Link to connect two sections of the same
webpage
PU
Computer-8
Cascading style sheet is that we can change the look and feel
of all the webpages of a website by changing the content of
just one single style.css file.
CSS has three parts:
i. Selector: Element which is to be modified.
ii. Property: Elements whose property is to be modified.
S
Example: Color, size, font etc.
iii. Value: Change the property according to the given value.
N
4. What are frames? How can we create frames in HTML?
Ans. HTML frames are used to divide the browser window into
IO
multiple sections where each section can load a separate
HTML document. A collection of frames in the browser
window is known as a frameset.
5.
AT
A <frame> tag defines a particular window (frame) within a
<frameset> tag. A web page can be divided into columns or
rows, attributes of a <frameset> tag respectively.
Discuss different tags used to create a table.
IC
Ans. Tags Func ons
<table>….</table> Creates a table with a combina on of
rows and columns.
BL
Computer-8