HTML frame Tag
来源:互联网 发布:zafe家的日记 知乎 编辑:程序博客网 时间:2024/04/29 10:00
HTML <frame> Tag
Example
A simple three-framed page:
<html><frameset cols="25%,50%,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 <frame> tag defines one particular window (frame) within a frameset.
Each frame in a frameset can have different attributes, such as border, scrolling, the ability to resize, etc.
Browser Support
The <frame> tag is supported in all major browsers.
Differences Between HTML and XHTML
In HTML, the <frame> tag has no end tag. In XHTML, the <frame> tag must be properly closed.
In XHTML, the name attribute of the <frame> tag is deprecated, and will be removed. Use the id attribute instead.
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 notsupport 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.
1 Specifies whether or not to display a border around a frame F longdesc URL Specifies a page that contains a long description of the content of a frame F marginheight pixels Specifies the top and bottom margins of a frame F marginwidth pixels Specifies the left and right margins of a frame F name name Specifies the name of a frame F noresize noresize Specifies that a frame cannot be resized F scrolling yes
no
auto Specifies whether or not to display scrollbars in a frame F src URL Specifies the URL of the document to show in a frame F
Standard Attributes
The <frame> tag supports the following standard attributes:
More information about Standard Attributes.
Event Attributes
According to the W3C, the <frame> tag does not support any event attributes.
However, the onload event is supported in all browsers.
More information about Event Attributes.
- HTML frame Tag
- HTML Tag
- HTML tag
- html tag
- HTML TAG
- html tag
- HTML tag
- html <frame>
- HTML Frame
- html Frame
- Meta tag in html
- html meta tag
- html tag marquee
- Struts HTML Tag
- HTML form Tag
- HTML iframe Tag
- HTML link Tag
- HTML input Tag
- 放假了,依然没有去打工,在家好好看书吧,从python开始
- 修改dedecms标题长度的3种办法(cn_substr方法加省略号)
- C++指针和内存的总结
- 腾讯聊天室访谈:对话李阳疯狂英语
- HTML frameset Tag
- HTML frame Tag
- 跳过前几章介绍和安装,从编程开始学习笔记
- Android入门教程(二)之------环境搭建
- 我的职业生涯的开始
- 查询本周的记录
- 进入项目组
- segmentation fault定位与调试
- 团购API解析 c#实现
- Android入门教程(三)之------导入现有Android工程