0% found this document useful (0 votes)
6 views1 page

HTML Frameset and Frame Tags Guide

The document describes the <frameset> tag, which replaces the <body> tag in frame-based HTML documents and allows for the division of the screen into rows and columns. It details the attributes of the <frame> tag, including SRC for the document URL, NAME for unique identification, and options for resizing and scrolling. An example of a legacy frame layout is provided, showcasing how to structure frames for a webpage.

Uploaded by

moseredempter
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

HTML Frameset and Frame Tags Guide

The document describes the <frameset> tag, which replaces the <body> tag in frame-based HTML documents and allows for the division of the screen into rows and columns. It details the attributes of the <frame> tag, including SRC for the document URL, NAME for unique identification, and options for resizing and scrolling. An example of a legacy frame layout is provided, showcasing how to structure frames for a webpage.

Uploaded by

moseredempter
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

<FRAMESET>

​This tag is the container for frames. It replaces the <body> tag in a frame-based document.
You cannot have both a <frameset> and a <body> unless the body is inside a <noframes>
tag.
​COLS Attribute: Divides the screen into vertical columns.
​ROWS Attribute: Divides the screen into horizontal rows.
​Values: These can be pixels (500), percentages (50%), or relative space (*).
​<FRAME>
​This tag defines a specific window (frame) within the frameset. It is a self-closing tag.
​SRC: The URL of the document to display in the frame.
​NAME: Assigns a unique name to the frame (crucial for targeting links).
​NORESIZE: Prevents the user from dragging the frame borders.
​SCROLLING: Can be set to "yes", "no", or "auto".

<!DOCTYPE html>
<html>
<head>
<title>Legacy Frame Layout</title>
</head>

<frameset rows="20%, 80%">


<frame src="[Link]" name="topFrame" scrolling="no" noresize>

<frameset cols="30%, *">


<frame src="[Link]" name="leftFrame">
<frame src="[Link]" name="mainFrame">
</frameset>

<noframes>
<body>
<p>Your browser does not support frames. Please update your browser.</p>
</body>
</noframes>
</frameset>
</html>
ASS

You might also like