Presentation on theme: "Creating Frames. Frames allow you to view more than one Web page at a time. You can split the browser window horizontally and vertically. You can also."— Presentation transcript:
Frames allow you to view more than one Web page at a time. You can split the browser window horizontally and vertically. You can also specify how Internet Web pages will display.
Understanding Frame Tags Dividing a single browser window into multiple windows for separate document viewing is called framing. There are two kinds of HTML documents being used on the Web: frameset documents and body documents.
Understanding Frame Tags Body documents are the Web pages we have created so far that are formatted using tags. Body documents tell the browser to display the information contained between the tags.
Understanding Frame Tags Frameset documents contain the information necessary for the browser to determine what kind of frame structure it should use when dividing the window into frames. Frameset documents contain URLs referencing a document that the browser should display within the frame. Frameset documents tell the browser, Display this file here, and that file there.
Understanding Frame Tags In a frameset document, the tag is replaced by the tags which tell the browser how to divide the windowhow many miniwindows to display and whether the windows will be displayed in rows or columns.
Understanding Frame Tags The tag tells the browser which filename to use as the source for that frame. The frameset document is sometimes referred to as the Master Page.
Splitting the Window Vertically When splitting the window, you need to specify what percentage of the window each document will have. Be careful that your percentages do not total more than 100% or the browser will display the Web page incorrectly. Then you need to tell the browser what file to put in each frame. for each window
Splitting the Window Horizontally To divide the window into rows, change the word COLS to ROWS in the tag There are two ways to specify the size of each window in a frameset document.
Splitting the Window Horizontally The percent sign (%) creates an absolute dimension. The frame will always be the specified percentage of the window. An elastic frame enlarges or gets smaller depending on how much room is left in the window.
Splitting the Window Horizontally The first window would be 30%, the second, 25%, and the third whatever is left over. Elastic frames help your Web page display correctly no matter what size screen your readers are using.
Frames Some browsers will not reload or refresh a frameset document. You will need to reopen the file.
Your consent to our cookies if you continue to use this website.