HTML Tag <IFRAME>

HTML Tag <IFRAME>

<IFRAME> Creates floating frames within a document. Floating frames differ from normal frames because they are independently manipulable elements within another HTML document.

Attribute of <IFRAME> Tag

ALIGN

Specifies how the floating frame lines up with respect to the left and right sides of the browser window.

<IFRAME ALIGN=LEFT SRC="aboutus.html" NAME="content">

Possible Values

LEFT, CENTER, RIGHT



BORDER

Indicates the thickness of a border around a floating frame (in pixels).

<IFRAME SRC="aboutus.html" NAME="content" BORDER=5>

Possible Values

Any integer number.



BORDERCOLOR

Specifies (in hexadecimal RGB values or the color name) the color of the border around a floating frame.

<IFRAME SRC="aboutus.html" NAME="content" BORDERCOLOR=#5A3F2E>

Possible Values

Any color name or Hexadecimal color code.



FRAMEBORDER

Indicates whether the floating frame has visible borders. A value of 0 indicates no border, and a value of 1 indicates a visible border.

<IFRAME SRC="home.php" NAME="content" FRAMEBORDER=0>

Possible Values

0,1



FRAMESPACING

Indicates the space (in pixels) between adjacent floating frames.

<IFRAME SRC="home.html" NAME="content" FRAMESPACING=10>

Possible Values

Value in Pixel.



HEIGHT

Specifies the vertical dimension (in pixels) of the floating frame.

<IFRAME SRC="home.html" NAME="content" WIDTH=500 HEIGHT=200>

Possible Values

Value in Pixel.



HSPACE

Indicates the size (in pixels) of left and right margins within the floating frame.

<IFRAME SRC="home.html" NAME="content" HSPACE=10 VSPACE=10>

Possible Values

Value in Pixel.



ID

Assigns a unique ID selector to an instance of the <IFRAME> tag. When you then assign a style to that ID selector, it affects only that one instance of the <IFRAME> tag.

<IFRAME SRC="home.html" NAME="content" ID="dkm">

Possible Values

Any ID Name.



MARGINHEIGHT

Specifies the size of the top and bottom margins (in pixels) within the floating frame.

<IFRAME SRC="hme.html" NAME="content" MARGINHEIGHT=50>

Possible Values

Value in Pixel.



MARGINWIDTH

Specifies the size of the left and right margins (in pixels) within the floating frame.

<IFRAME SRC="home.html" NAME="content" MARGINWIDTH=50>

Possible Values

Value in Pixel.



NAME

Assigns the frame a unique name. You can use this name within other frames to load new documents in the frame and to manipulate the attributes of the frame.

<IFRAME SRC="home.html" NAME="content" WIDTH=500 HEIGHT=200>

Possible Values

Any Name for accessing.



NORESIZE

Specifies that the floating frame cannot resize. Because the HTML 4 specification forbids resizable inline frames, this attribute is only relevant to Internet Explorer.

<IFRAME SRC="home.html" NAME="content" NORESIZE>

Possible Values

NORESIZE



SCROLLING

Indicates whether the floating frame has scrollbars.

<IFRAME SRC="home.html" SCROLLING=NO>

Possible Values

Yes,NO



SRC

Specifies the relative or absolute location of the document file to load in the floating frame.

<IFRAME NAME="content" SRC="home.html">

Possible Values

URL



STYLE

Specifies Style Sheet commands that apply to the floating frame.

<IFRAME SRC="home.html" NAME="content" STYLE="background: red">

Possible Values

CSS Property with value.



VSPACE

Indicates the size (in pixels) of top and bottom margins within the floating frame.

<IFRAME SRC="home.html" NAME="content" HSPACE=10 VSPACE=10>

Possible Values

Value in Pixel.



WIDTH

Specifies the horizontal dimension (in pixels) of the floating frame.

<IFRAME SRC="home.html" NAME="content" WIDTH=500 HEIGHT=200>

Possible Values

Value in Pixel.




CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad