HTML Tag Reference - HTML tag <frame>








This element creates a single frame within the <frameset> element. <frameset> tag replaces the <body> tag.

Browser compatibility

<frame> Yes Yes Yes Yes Yes

What's new in HTML5

The <frame> tag is deprecated in HTML5.

Attribute

frameborder
Value:0 or 1
Not supported in HTML5. whether to show border
longdesc
Not supported in HTML5. URL that has a long description for the frame
marginheight
Not supported in HTML5. top and bottom margins in pixels for the frame
marginwidth
Not supported in HTML5. the left and right margins in pixels for the frame
name
Not supported in HTML5.the name of a frame.
noresize
Value:noresize
Not supported in HTML5.turn off the resize for frame
scrolling
Value:yes|no|auto
Not supported in HTML5. whether to display scrollbars in a frame.
src
Not supported in HTML5. Set the content URL for frame

Example

A demo showing how to use <frame> tag.

<html>
    <frameset rows="33%, 33%, *" cols="33%, 33%, *">
        <frame name="frame_1" src="frame(1).html">
        <frame name="frame_2" src="frame(2).html">
        <frame name="frame_3" src="frame(3).html">
        <frame name="frame_4" src="frame(4).html">
        <frame name="frame_5" src="frame(5).html">
        <frame name="frame_6" src="frame(6).html">
        <frame name="frame_7" src="frame(7).html">
        <frame name="frame_8" src="frame(8).html">
        <frame name="frame_9" src="frame(9).html">
    </frameset>
    <noframes>Your system doesn't support frames.</noframes>
</html>