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

Unit 4 - Exercises

ICT ansers

Uploaded by

Hsu Myat
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)
20 views

Unit 4 - Exercises

ICT ansers

Uploaded by

Hsu Myat
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/ 4

Unit 4

Exercise
A. True or False

1. True

2. False

3. True

4. True

5. True

B. Give one word for the following.

1. src

2. bordercolor

3. <frameset>

4. noresize

5. <frame>

C. Explain the difference between the following tag attributes:

1. Cols: Specifies the number and size of columns in a frameset. Its value
can be a specific percentage of the web page or in pixels. The default value is
100% (1 column).

Rows: Specifies the number and size of rows in a frameset. Its value can be
a specific percentage of the web page or in pixels. The default value is 100%
(1 row).
2. Border: Specifies the thickness of the frame borders in pixels for all the
frames in the outermost frameset. The default value is 5 pixels. It can be used
only for the outermost frameset.

Bordercolor: Specifies the color of the border of the frame.

3. Src: Specifies the URL of the initial file to be displayed in the frame.

Name: Assigns a name to the frame that may be used as a target for links.

Frameborder: Specifies whether the border should be visible or not. Its value
can be either Yes or No.

4. Marginheight: Specifies, in pixels, the space to be left between the


frame's contents at top and bottom margins.

Marginwidth: Specifies, in pixels, the space to be left between the frame's


contents at its left and right margins.

D. Answer the following questions.

1. Why do you need to create frames in a html window?

Frames allow you to divide the web page into several independent parts or
panes. The frames work as independent windows allowing multiple views at
one time. They allow one part of the web page to remain static while allowing
other parts to change.

2. Discuss the <FRAMESET> tag and its attributes.

A frameset is defined as a set of frames inserted in a HTML web page. These


frames can be in the form of rows and columns in different proportions, A
frameset tells the browser how to divide the screen into split windows. The
<FRAMESET> tag divides the web page into rectangular areas where an
individual HTML document can be loaded for each area using the <FRAME>
tag.

The attributes of the <FRAMESET> tag:

· Cols: Specifies the number and size of columns in a frameset. Its


value can be a specific percentage of the web page or in pixels. The
default value is 100% (1 column).
· Rows: Specifies the number and size of rows in a frameset. Its
value can be a specific percentage of the web page or in pixels. The
default value is 100% (1 row).

· Border: Specifies the thickness of the frame borders in pixels for


all the frames in the outermost frameset. The default value is 5 pixels.
It can be used only for the outermost frameset.

· Bordercolor: Specifies the color of the border of the frame.

· Frameborder: Specifies whether the border should be visible or


not. Its value can be either Yes or No.

3. Discuss different attributes of the <FRAME> tag.

The attributes of <FRAME> tag:

· Src: Specifies the URL of the initial file to be displayed in the frame.

· Name: Assigns a name to the frame that may be used as a target for
links.

· Frameborder: Specifies whether the border should be visible or not. Its


value can be either Yes or No.

· Bordercolor: Specifies the color of the border of the frame.

· Scrolling: Specifies the scroll information for the frame. It can have a
value Yes, No or Auto. Yes means scrollbars are displayed. No means
scrollbars are never available and Auto means provides scrolling if
necessary. Auto is the default value.

· Marginheight: Specifies, in pixels, the space to be left between the


frame's contents at top and bottom margins.

· Marginwidth: Specifies, in pixels, the space to be left between the


frame's contents at its left and right margins.

4. What is a nested frameset? Give an example.

Creating one frame within another frame is known as a nested frame set. This
is done by using the nested frameset tags in the main window. One of the
most popular uses for frames is nesting the frameset tags to design a
complete website with the homepage on the left frame and the content,
selected from the list in the homepage, on the right frame. An example is
shown below of how to create a complete web page.

You might also like