The HTML frame element supports a number of attributes some of which are listed below.
The name attribute allows you to attach a name to the frame in the form name="frame_name" where "frame_name" is a unique name. The name attribute is required if you wish to place a hypertext link in one frame to target another frame.
The src attribute specifies the source file for the frame and takes the form src="url" where "url" is the absolute or relative URL of the page to be displayed in the frame.
The frameborder attribute places a border around the frame and takes the form frameborder="value" where "value" is either
1 to display a border (the default).
0 to display no border.
The marginheight attribute defines the amount of space between the top and bottom edges of a frame and its content and takes the form marginheight="n" where "n" is an amount in pixels not less than 1.
The marginwidth attribute defines the amount of space between the left and right edges of a frame and its content and takes the form marginwidth="n" where "n" is an amount in pixels not less than 1.
The noresize attribute prevents the user from resizing the frame by dragging the borders with the mouse. You should be sure that your content will be visible on lower screen resolutions so that users won't have to resize when you use this attribute.
The scrolling attribute creates a frame with or without scrollbars and takes the form scrolling="value" where "value" may be one of those below.
scrolling="yes" means scrollbars are always displayed whether or not the page content fits within the frame
scrolling="no" means scrollbars are never displayed whether or not the page content fits within the frame. The same precautions as with noresize should be taken.
scrolling="auto" means scrollbars are only displayed when the page content does not fit within the frame
The class attribute tells the browser to render the frame in a named style and takes the form <frame class="my_frame_style"> where "my_frame_style" is a previously defined style.
The <noframes> Element
This element is optional and is used to provide alternative output to browsers that don't support frames.
An Example of the <noframes> Element
<noframes>
<body>
Your browser does not support frames.
You can <a href="noframes.htm">view our no frames site here.</a>
</body>
</noframes>
Browsers that support frames will ignore everything between the <noframes> start and closing tags.
Browsers that don't support frames won't recognise the <noframes> tags and will ignore them and output everything between the start and closing tags.