Приглашаем посетить
Культурология (cult-lib.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:

You want a web page with two columns of text side by side. How do you create it?

2:

You think the columns you created for question 1 look too close together. How do you add 30 pixels of space between them?

3:

Write the HTML to create the table shown in the following figure:

Workshop

Answers

A1:

With the following table:

<table>
  <tr>
    <td style="vertical-align:top">
    First column of text goes here...
    </td>
    <td style="vertical-align:top">
    Second column of text goes here...
    </td>
  </tr>
</table>

A2:

Add cellspacing="30" to the <table> tag. (Alternatively, you could use cellpadding="15" to add 15 pixels of space inside the edge of each column.)

A3:

<table border="5">

  <tr>
    <td rowspan="3">A</td>
    <td colspan="3">B</td>
  </tr>
  <tr>
    <td>E</td>
    <td>F</td>
    <td rowspan="2">C</td>
  </tr>
  <tr>
    <td colspan="2">D</td>
  </tr>
</table>


Previous Page
Table of Contents
Next Page