HTML frame tag

The <frame> tag is not supported in HTML5. To define a window in another window or frameset. The <frame> tag used to define frame within a <frameset>.

The <frameset> can contain multiple frames (<frame>). Each <frame> element can have different attributes and refer to the separate document. There is no end tag required in HTML for <frame> tag.

Syntax -
<frame>.. text here.. </frame>
AttributeDescriptionValues
FrameborderSpecifies whether frame border displays or not01
MarginheightSpecifies the top and bottom margins of the framePixels
MarginwidthSpecifies the left and right margins of the framePixels
NameSpecifies the name of the frameText
NoresizeSpecifies the frame is not resizableNoresize
ScrollingSpecifies frame defined is scrollable or notAuto No Yes
SrcSpecifies the source of the page to show in frameURL
Example -
<!DOCTYPE html>
<html>
	<head>
		<title>Frame example</title>
	</head>
	<body>
		<frameset cols="20%,20%,25%,*">
			<frame src="frame1.htm">
			<frame src="frame2.htm">
			<frame src="frame3.htm">
			<frame src="frame4.htm">
		</frameset>
	</body>
</html>
Output -