The document contains exercises related to HTML frames and framesets, including true or false questions, one-word answers, and explanations of tag attributes. It discusses the purpose of frames, the <FRAMESET> tag and its attributes, as well as the <FRAME> tag and its various attributes. Additionally, it explains the concept of nested framesets with an example.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
18 views2 pages
Unit4 Exerciseanswers
The document contains exercises related to HTML frames and framesets, including true or false questions, one-word answers, and explanations of tag attributes. It discusses the purpose of frames, the <FRAMESET> tag and its attributes, as well as the <FRAME> tag and its various attributes. Additionally, it explains the concept of nested framesets with an example.
C. Explain the difference between the following tag attributes:
1. Cols specifies the number and width of columns in a frameset and rows specifies the number and height of rows in a frameset. 2. Border sets the thickness of the frame borders while the bordercolor defines the color of the frame borders. 3. Src specifies the URL of the content to display in the frame and name assigns a name to the frame, which can be used for links. 4. Marginheight sets the vertical space (top and bottom) between the content and the frame's edges while Marginwidth sets the horizontal space (left and right) between the content and the frame's edges.
D. Answer the following questions.
1. Why do we need to create frames in HTML window? To divide the window into a different pane 2. Discuss the <FRAMESET> tag and attributes To create a set of frames on an HTML web page. It divides the page into rows and columns, specifying how the browser should split the screen into separate windows or panes. These panes can be used to display different HTML elements in each area. Src, Name,Frameborder, Bordercolor, Scrolling, Marginheight, Marginwidth. 3. Discuss the different attributes of the <FRAME> tag Src: Specifies the URL of the initial file to be displayed in the frame. Name: Assigns a name to the frame that may be used as a target for links Frameborder: Specifies whether the border should be visible or not. Its value can be either Yes or No. Bordercolor: Specifies the color of the border of the frame. Scrolling: Specifies the scroll information for the frame. It can have a value Yes, No or Auto. Yes means scrollbars are displayed. No means scrollbars are never available and Auto means provides scrolling if necessary. Auto is the default value. Marginheight : Specifies, in pixels, the space to be left between the frame's contents at top and bottom margins. Marginwidth: Specifies, in pixels, the space to be left between the frame's contents at its left and right margins. 4. What is a nested frameset? Give an example. A nested frameset is when one <FRAMESET> tag is placed inside another <FRAMESET> tag so you can divide the web page, to create complex layouts with multiple rows and columns. For example, You can divide it into 4 sections using columns (cols), rows (rows).