70 likes | 82 Views
Learn how to divide browser windows with frameset tag and its attributes. Create frames with frame tag, assign src and name attributes, and target links. Enhance website structure and navigation!
E N D
Table of Contents Creating Frames Frameset Tag and its attributes rows attribute cols attribute border attribute Frame Tag and its attributes noresize attribute scrolling attribute name attribute src attribute Target attribute of Anchor tag
Creating Frames • The purpose of creating frames is to divide the browser’s display window into rows and/or column of individual frame. • Frame does not hold information. Therefore, you don’t need body tag. • To create a frame, you need frameset and frame tag.
Frameset Tag and its attributes • Frameset: <frameset>…</frameset> is a collection of frames that make up a browser’s window. • Frameset tag replaces the <body> tag in the document. It is intended to divide up the window so you should never have both frameset and body tag in the same document
Frameset Tag and its attributes • Attributes of Frameset Tag • rows -- indicates the size of each rows • cols -- indicates the size of each columns • border -- indicates the size of the divider • Values for rows and cols attribute consist of set of number separated by commas • For each number assigned to rows or cols attribute, there must be a frame tag to match within the frameset tag
Frame Tag and its attributes • Frame: <frame> tag represents a single frame window • Frame tag has two important pieces of information. First, src attribute tells the browser the file name of the webpage that will initially be loaded into the frame. The name attribute tells the browser how to refer or call that frame in a link
Frame Tag and its attributes • Attributes of Frame Tag • src attribute • name attribute • scrolling attribute • noresize • Filename of the webpage assigned as src value are independent, standard html files with body tags, holds the information to be displayed
Target attribute of Anchor tag • The anchor tag has an additional attribute called target that is set to the name of the frame where you would like the link to load the webpage indicated in the href attribute. • Other target values include _top, _self, _blank, and _parent