<frame> tag in HTML
The <frame> tag is used to create frames for the content of a web page in each cell within a <frameset> tag.
Example of <frame> tag
The cols attribute is used to define the number and size of vertical columns the <frameset> will contain and the rows attribute is used to define the number and size of horizontal rows the <frameset> will contain.
Problems with <frame>
- The <frame> tag is not supported in HTML5.
- Different resolution of screen can have different effects.
- Browser back button may behave uncreatively.
<frame> Tag Browser Support
The <frame> tag maybe sometimes behave different with different browsers:
Element |
Chrome |
Edge |
Firefox |
Safari |
Opera |
<frame> |
Yes |
Yes |
Yes |
Yes |
Yes |
Attributes
All listed <frame> attributes are not supported in HTML5:
Attribute |
Value |
Description |
name |
text |
Defines the name of a frame |
noresize |
noresize |
Defines that a frame is not resizable |
src |
URL |
Defines the URL of the document to show in a frame |
marginwidth
marginheight |
Pixels |
Defines the top, bottom, left, and right margins of a frame |
scrolling |
yes
no
auto |
Defines whether or not to display scrollbars in a frame |
frameborder |
0
1 |
Defines whether or not to display a border around a frame |