A frameset defines the overall look of a page that uses framesthe number of frame areas on the page, the size of each frame, and the border attributes. A frameset itself does not contain any content; it specifies what HTML document will be used in each frame. The frameset document is the file that you link to when calling up a frames-based Web page. In this lesson, you create a Web page consisting of three frames. The left frame holds navigation elements that remain constant, the right frame displays pages with content relative to the links clicked in the navigation frame, and the top frame contains the title of the site. There are two ways to create a frameset in Macromedia Dreamweaver: You can manually insert the frames or you can choose from several predefined framesets. If you choose a predefined frameset, the frameset and frames are automatically set up for you. The predefined frameset method is one of the quickest ways to create a layout using frames because most of the work is done for you. You just need to name the individual pages. In this exercise, you will use a predefined frameset to create a Web page that uses frames.
Set the title of rightFrame to Right Navigation Set the title of topFrame to Title and Navigation Set the title of mainframe to Main Content
Note If the Frame Tag Accessibility Attributes dialog box does not appear, you can turn on the Frames accessibility feature by choosing Dreamweaver > Preferences (Macintosh) or Edit > Preferences (Windows) and selecting Accessibility from the Category list. Under the Show attributes when inserting option ensure that Frames is checked.
The Frame Tag Accessibility Attributes dialog box enables you to select an appropriate title for each frame. The title provides context for the content of each frame, so users can determine which frame has the information they seek. A frame title is defined through the title attribute, which is easily accessed when you first create the frames via the Frame Tag Accessibility Attributes dialog box. However, you can also apply or edit frame titles at a later time by selecting a frame and using the CSS/Accessibility portion of the Attributes section of the Tag panel to modify the title attribute. The title attribute is not interchangeable with the name attribute. The title labels the frame for users; the name labels it for scripting and window targeting. Only the title is presented to users. You'll work with frame names later in this lesson.
After you apply the accessibility attributes, you will see the frameset in the Document window. A dotted border appears around the page edges in the frameset, and lines show the frame structure. The page is divided into three frames with the use of two framesets. Framesets can contain only horizontal frames or only vertical framesthey cannot contain both vertical and horizontal frames at the same time. To achieve the combination of vertical and horizontal frames, framesets must be nested within each other. A nested frameset is one that is contained inside a frame that was defined by a previous frameset. The initial frameset of your document contains two vertical framesone on the left and one on the right. The left frame contains a nested frameset that is divided into two horizontal frames: a short frame on the top and a longer frame on the bottom. Several of Dreamweaver's predefined framesets use nested framesets. You can use combinations of these predefined framesets to come up with any frame layout you want. Thin gray lines mark the divisions between frames. Note To insert frames manually, open a new HTML document and choose View > Visual Aids > Frame Borders to turn on the dotted frame border around the page edges of the Document window. Click the border and drag it into the Document window. The document becomes split horizontally (if you drag from the top or bottom of the border) or vertically (if you drag from the left or right sides of the border). If you drag the border from the corner, the document becomes divided into four frames. You can also choose Modify > Frameset > Split Frame Left, Right, Up, or Down. If you selected the wrong frames configuration or need to reduce the number of frames in your frameset, you can remove the extra frames by dragging the border of the unwanted frame to the edge of the page or atop another frame. The extra frame disappears. Leave this file open to use in the next exercise. |