Working with FRAMES in HTML:
<FRAMESET>Tag:
This tag is used to display TWO or MORE web pages on the (single) same Web Browser
Window. It replaces the <BODY> tag in the web page, means now we cannot
display any text message or content directly on the web browser.
<FRAMESET> contains <FRAME> tags. Start and end tags both are
required and supported by all the browsers.
Attribute
|
Specification
and Value
|
COLS
|
It
defines the number of columns in FRAMESET for creating vertical FRAMES.
Example:
<FRAMESET COLS=“30%, 40%, 30%”>
|
ROWS
|
It
defines the numbers of rows in the FRAMESET for creating horizontal FRAMES.
Example:
<FRAMESET ROWS=“50%, 20%, 30%”>
|
FRAMEBORDER
|
YES (Default), NO
|
BORDER
|
It
sets thickness of the border.
|
BORDERCOLOR
|
It
sets colour of the border.
|
FRAMESPACING
|
Space
between two frames.
|
STYLE
|
Inline
styling is used to apply a unique style (or formatting) to a single HTML
element.
|
TITLE
|
Title
of the tag (like “ToolTipText” in VB)
|
~ ~ ~ ~ ~ ~ ~ * ~ ~ ~ ~ ~ ~ ~
<FRAME> Tag:
It creates a frame which is used inside the <FRAMESET> tag, only start
tag is required.
Attribute
|
Specification
and Value
|
SRC
|
It
specifies the name of the web page with appropriate path or URL.
|
NORESIZE
|
It
is a stand along attribute of the frame and if
users don’t want to resize of the frame, it can be used.
|
SCROLLING
|
YES (By Default), NO
|
NAME
|
It
sets the name of the frame, we can use the named frame as target for <A>,
<AREA>, <FORM>, etc.
|
FRAMEBORDER
|
YES(Default), NO
|
BORDERCOLOR
|
It
sets colour of the border.
|
MARGINHEIGHT
|
It
sets the size of the top and bottom margin.
|
MARGINWIDTH
|
It
sets the size of the right and left margin.
|
STYLE
|
Inline
styling is used to apply a unique style (or formatting) to a single HTML
element.
|
TITLE
|
Title
of the tag (like “ToolTipText” in VB)
|
~ ~ ~ ~ ~ ~ ~ * ~ ~ ~ ~ ~ ~ ~
Example-1: First we will create 3 Web Pages BCA.HTML, PGDCA.HTML
& MCA.HTML then write following codes:
<!
HFRAME.HTML>
<HTML>
<HEAD>
<TITLE>
Working with FRAMES </TITLE>
</HEAD>
<FRAMESET ROWS=“50%, 20%, 30%”>
<FRAME SRC=“BCA.HTML”>
<FRAME SRC=“PGDCA.HTML”>
<FRAME SRC=“MCA.HTML”>
</FRAMESET>
</HTML>
~ ~ ~ ~ ~ ~ ~ * ~ ~ ~ ~ ~ ~ ~
Example-2:
<!
VFRAME.HTML>
<HTML>
<HEAD>
<TITLE>
Working with FRAMES </TITLE>
</HEAD>
<FRAMESET COLS=“30%, 40%, 30%”>
<FRAME SRC=“BCA.HTML”>
<FRAME SRC=“PGDCA.HTML”>
<FRAME SRC=“MCA.HTML”>
</FRAMESET>
</HTML>
~ ~ ~ ~ ~ ~ ~ * ~ ~ ~ ~ ~ ~ ~
Video Link:
No comments:
Post a Comment