Setting up a Web Site - HTML



Description

Frame Tags

<FRAMESET ROWS="35,*"> </FRAMESET>
Splits window into 2 rows

<FRAMESET COLS="25%,75%"> </FRAMESET>
Splits window into 2 columns

<FRAME SRC="index.html" NAME="INDEX">
Specifies content and name for a frame

<NOFRAMES> </NOFRAMES>
Indicates text to be dipslayed if browser does not support frames

Sample Document

Here is an example of a document designed with frames:

<FRAMESET ROWS="35,*"> <FRAME SRC="head1.html" MARGINHEIGHT=1 SCROLLING=NO> <FRAMESET COLS="25%,75%"> <FRAME SRC="index1.html"> <FRAME SRC="html8.html" NAME="MAIN"> </FRAMESET> </FRAMESET> <NOFRAMES> Sorry, your browser does not support frames. </NOFRAMES> Why don't you see how it looks?

This tag splits the screen horizontally, one row of 35 pixels and the other the remainder of the window:

<FRAMESET ROWS="35,*"> This specfies the contents of the first frame or row:

<FRAME SRC="head1.html" MARGINHEIGHT=1 SCROLLING=NO> This splits the second row vertically as a percentage:

<FRAMESET COLS="25%,75%"> This specifies the contents of the two columns:

<FRAME SRC="index1.html"> <FRAME SRC="html8.html" NAME="MAIN"> Finally, this provides the alternate text:

<NOFRAMES> Sorry, your browser does not support frames. </NOFRAMES>

Using Target with Links

To have links display text in a specified frame, use the TARGET parameter in the anchor tag:

<A HREF="html8.html" TARGET="MAIN">Part 8 - Forms</A> The contents of the file index1.htm used in the left-side frame are:

<A HREF="html8.html#desc" TARGET="MAIN">Description</A> <A HREF="html8.html#tags" TARGET="MAIN">Form Tags</A> <A HREF="html8.html#input" TARGET="MAIN">Input Fields</A> <A HREF="html8.html#radio" TARGET="MAIN">Radio Buttons</A> <A HREF="html8.html#select" TARGET="MAIN">The Select Tag</A> <A HREF="html8.html#check" TARGET="MAIN">Checkbox Input</A> <A HREF="html8.html#buttons" TARGET="MAIN">Buttons</A> <A HREF="html8.html#data" TARGET="MAIN">Processing Form Data</A> TARGET may also be used to open a new browser window.

Go to Top of Page

Back to Contents Page


Web Development Workshop
1999 MSACROA Conference
Sunday, November 28, 1999