HTML frameset Tag

HTML <frameset> Tag

Example

A simple three-framed page:

<html>

<frameset cols="25%,*,25%">
  <frame src="frame_a.htm" />
  <frame src="frame_b.htm" />
  <frame src="frame_c.htm" />
</frameset>

</html>

Try it yourself »
(more examples at the bottom of this page)

Definition and Usage

The <frameset> tag defines a frameset.

The frameset element holds one or more frame elements. Each frame element can hold a separate document.

The frameset element states HOW MANY columns or rows there will be in the frameset, and HOW MUCH percentage/pixels of space will occupy each of them.


Browser Support

The <frameset> tag is supported in all major browsers.


Differences Between HTML and XHTML

NONE


Tips and Notes

Note: If you want to validate a page containing frames, be sure the doctype is set to "Frameset DTD". Read more about doctypes.

Important: You cannot use the body element together with the frameset element. However, if you add a <noframes> tag containing some text for browsers that do not support frames, you will have to enclose the text in a body element.


Optional Attributes

DTD indicates in which HTML 4.01/XHTML 1.0 DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.

AttributeValueDescriptionDTD
colspixels
%
*
Specifies the number and size of columns in a framesetF
rowspixels
%
*
Specifies the number and size of rows in a framesetF


Standard Attributes

The <frameset> tag supports the following standard attributes:

AttributeValueDescriptionDTD
classclassnameSpecifies a classname for an elementF
ididSpecifies a unique id for an elementF
stylestyle_definitionSpecifies an inline style for an elementF
titletextSpecifies extra information about an elementF

More information about Standard Attributes.


Event Attributes

The <frameset> tag supports the following event attributes:

AttributeValueDescriptionDTD
onloadscriptScript to be run when a document loadF
onunloadscriptScript to be run when a document unloadF

More information about Event Attributes.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值