HTML Old School

FRAMESET tag

Frameset <frameset></frameset> tag replaces body tag <body></body>.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=windows-1250">
<title>FRAME scrolling yes</title>
</head>
<frameset cols="*,80">
    <frame src="./doc_a.html" scrolling="yes">
    <frame src="./doc_b.html" scrolling="no">
</frameset>
</html>

 

Inside frameset we must put 2 or more frame tags.

Frameset tag is container what means it must have closing tag.

Frame tag is void so it don't have closing tag.

 

Frameset tag attributes

1. cols="px | %"

Defines width of the frame window.

Example cols="20%, 30%, 50%" : 03fset_cols1.htm

Example cols="20%, 20, *, 3*" : 03fset_cols2.htm    (4 columns, 1st is 20% of browser's window width, 2nd is 20px, 3rd is the rest, 4th is 3 times wider then previos column)

 

2. rows="px | %"

Divide browser window in frame rows.

 

3. frameborder="yes | no | 1 | 0 |

Define frame border.

Example frameborder="yes" : 04fset_fbrd1.htm

Example frameborder="0" : 04fset_fbrd2.htm

 

4. border="px"   ,   bordercolor="FCF"

Defines border width and border color.

border width of 30px: 05fset_brd.htm

red border: 06fset_bc.htm

 

Old attribute for border is framespacing but don't work in most of modern browsers.

Framespacing should set broder to 30px width: 05fset_frsp.htm