Which of the following is the correct code to create a framed webpage as in the figure below?
Which of the following is the correct code to create a framed webpage as in the figure below?
Figure: the window is split into two rows: the top row (25%) is Frame A; the bottom row (75%) is split into two equal columns (50% each): Frame B on the left and Frame C on the right.
Show answerHide answer
Correct answer: (A) <FRAMESET ROWS = "25%, 75%"> <FRAME SRC = "A.html"> <FRAMESET COLS = "50%, 50%"> <FRAME SRC = "B.html"> <FRAME SRC = "C.html"> </FRAMESET> </FRAMESET>
Explanation
The outer FRAMESET ROWS="25%,75%" makes two rows: Frame A in the first row, and a nested FRAMESET COLS="50%,50%" holding Frames B and C in the second. Options C and D swap FRAME and FRAMESET.