Приглашаем посетить
Ларри (larri.lit-info.ru)

Workshop

Previous Page
Table of Contents
Next Page

Workshop

The workshop contains quiz questions and activities to help you solidify your understanding of the material covered. Try to answer all questions before looking at the "Answers" section that follows.

Quiz

1:

Write the HTML code to list the names Mickey, Minnie, and Donald in a frame taking up the left 25% of the browser window. Make it so that clicking each name brings up a corresponding web page in the right 75% of the browser window.

2:

Write a frameset document to make the frame layout pictured here:

Workshop

Answers

A1:

You need five separate HTML documents. The first document is the frameset:

<html>
  <head>
    <title>Our Friends</title>
  </head>

  <frameset cols="25%,75%">
    <frame src="/css/004/index.html" />
    <frame src="mickey.html" name="mainframe" />
  </frameset>
</html>

Next, you need the index.html document for the left frame:

<html>
  <head>
    <title>Our Friends Index</title>
  </head>

  <body>
    <p>
      Pick a friend:
    </p>
    <p>
      <a href="mickey.html" target="mainframe">Mickey</a><br />
      <a href="minnie.html" target="mainframe">Minnie</a><br />
      <a href="donald.html" target="mainframe">Donald</a>
    </p>
  </body>
</html>

Finally, you need the three HTML pages named mickey.html, minnie.html, and donald.html. They contain the information about each friend.

A2:

<html>
  <head>
    <title>Nested Frames</title>
  </head>

  <frameset rows="*,*">
    <frameset cols="*,*,*">
      <frame src="top1.html" />
      <frame src="top2.html" />
      <frame src="top3.html" />
    </frameset>
    <frameset cols="*,*">
      <frame src="bottom1.html" />
      <frame src="bottom2.html" />
    </frameset>
  </frameset>
</html>


Previous Page
Table of Contents
Next Page