0% found this document useful (0 votes)
97 views

Class 8 CH 3

IT

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)
97 views

Class 8 CH 3

IT

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

3 Exploring HTML5

TUK Activity (Page No. 49)


Answer in one word.

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

Create a web page for the following table.

Fruit Colour Taste


Apple Red Sweet/Sour
PU

Orange Orange Sour


Banana Yellow Sweet
Grapes Green Sweet/Sour
K

Table should have:


TU

Ÿ Background colour yellow


Ÿ Border 4
Ÿ Cellspacing 3
Ÿ Width 70%

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

1. CSS is an acronym for _______________________.


a) ✔ Cascading Style Sheet
b) Costume Style Sheet
PU

c) Cascading System Style


2. Which HTML tag is used to scroll a text in a web page?
a) ✔ <marquee>…</marquee>
b) <round>…</round>
c) <scroll>…</scroll>
K

3. Which of the following is not an example of browser?


TU

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

False. An external 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.
___________________________________________________________________
PU

(D) Differentiate between the following terms.


1. Internal CSS and External CSS
An internal CSS is used to define a style for a single HTML
K

page. The code is written in the <head> section of an HTML


page, within a <style> element.
TU

An external style sheet is used to transform the look of an


entire website. It is done by changing just one file because it
defines the style for multiple HTML pages.
2. Cellspacing and Cellpadding
Cellspacing is the space between cells. Cellpadding is the space
between the edge of the cell and its contents.

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.

(E) Answer in short.


1. What is the use of alternate text in an image?

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

Ans. Using <border> attribute

(F) Answer the following questions.


PU

1. What are tables in HTML? Define its structure.


Ans. When you need to present data in a tabular form, you can
use <table> tag. Tables are divided into table rows with the
<tr> tag, and header rows with the <th> tag. Data in a row
K

can be added by using <td> tag, which is called the data


container. Tables can be used to organise calendars,
schedules, statistics or other types of information.
TU

<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

To link two sections of the same webpage, we have


to mark the sections with a name using the name
attribute as follows.
Syntax: <A name = "#name"> </A>
K

c. Website links and email links


To link a page to a website, URL of the website is
TU

specified with the HREF attribute.


Syntax: <A href = "URL of the webpage"> Text
</A>
3. What are Cascading Style Sheets? Describe the different
parts of CSS.
Ans. CSS stands for Cascading Style Sheets. The main benefit of

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

<th>….</th> Creates Table header.


<tr>….</tr> Creates Table row.
<td>….</td> Creates Table cell data.
<cap on> Defines a Table cap on.
PU

(G) Application based questions


1. What's wrong with the following HTML Markup?
<a name="next">show next <a>
<style> p{font size:10px;} </style>
__________________________________________________________________
K

2. Alok has created a web page. He wants his name to be scrolled


TU

on it all the time. Which tag should Alok use?


Alok should use <marquee> tag
__________________________________________________________________

Computer-8

You might also like