HTML tag (Not supported in HTML5)

HTML tag define the particular area within an HTML file where another HTML web page can be displayed.

A tag is used with , and it divides a webpage into multiple sections or frames, and each frame can contain different web pages.

Note: Do not use HTML tag as it is not supported in HTML5, instead you can use

Syntax

Following are some specifications about the HTML tag

Display Block
Start tag/End tag Start tag(required), End tag(forbidden)
Usage Frames

Example 1

Create Vertical frames:

Test it Now

Output:

HTML frame tag

Frame1.html

Frame2.html

Frame3.html

Example 2:

Create Horizontal frames:

Test it Now

Output:

HTML frame tag

Attribute

Tag-specific attribute

Attribute Value Description
frameborder 0
1
It specifies whether to display a border around the frame or not, and its default value is 1
longdsec URL It specifies a page which contains the long description of the content of the frame.
marginheight pixels It specifies the top and bottom margins of the frame.
marginwidth pixels It defines the height of the margin between frames.
name text It is used to assign the name to the frame.
noresize noresize It is used to prevent resizing of the frame by the user.
scrolling yes
no
auto
It specifies the existence of the scrollbar for overflowing content.
src URL It specifies the URL of the document which we want to display in a frame.

Supporting Browsers

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Yes Yes Yes Yes Yes
Next TopicHTML Frameset Tag




Contact US

Email:[email protected]

HTML frame Tag
10/30