HTML Tag <FRAME>

HTML Tag <FRAME>

<FRAME> Defines a frame within a frameset (see the <FRAMESET> tag). The <FRAME> tag specifies the source file and visual characteristics of a frame.

Attribute of <FRAME> Tag

BORDER

Specifies the thickness of the border (in pixels) around a frame. Use BORDER=0 to specify a frame with no border.

<FRAME SRC="aboutus.html" BORDER="2">

Possible Values

Any positive integer number.



BORDERCOLOR

Specifies the color of the border around the frame. Use the color’s hexadecimal RGB values or the color name.

<FRAME SRC="aboutme.html" BORDERCOLOR="red">

Possible Values

Color Name or Color hexadecimal code.



FRAMEBORDER

Indicates whether the frame’s border is visible. A value of 1 indicates that the border is visible, and a value of 0 indicates that it is not visible.

<FRAME SRC="history.html" FRAMEBORDER=0>

Possible Values

0,1



MARGINHEIGHT

Specifies the vertical dimension (in number of pixels) of the top and bottom margins in a frame.

<FRAME SRC="gallary.htm" MARGINHEIGHT=10>

Possible Values

Integer Value



MARGINWIDTH

Specifies the horizontal dimension (in pixels) of the left and right margins in a frame.

<FRAME SRC="aboutus.html" MARGINWIDTH=10>

Possible Values

Integer Value



NAME

Gives the frame you are defining a name. You can use this name later to load new documents into the frame (see the TARGET= attribute) and within scripts to control attributes of the frame. Reserved names with special meaning include _blank, _parent, _self, and _top.

<FRAME SRC="login.html" NAME="login">

Possible Values

Any Name.



NORESIZE

Makes a frame’s dimensions unchangeable. Otherwise, if a frame’s borders are visible, visitors can resize the frame by selecting a border and moving it with the mouse.

<FRAME SRC="news.html" NAME="news" NORESIZE SCROLLING=NO>

Possible Values

NORESIZE



SCROLLING

Indicates whether a scrollbar is present within a frame when text dimensions exceed the dimensions of the frame. Set SCROLLING=NO when using a frame to display only an image.

<FRAME NAME="header: SRC="header.html" SCROLLING=NO>

Possible Values

YES, NO, AUTO



SRC

Specifies the relative or absolute location of a document that you want to load within the defined frame.

<FRAME NAME="main" SRC="home.html">

Possible Values

URL




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