Skip to content
IGCSE·Tuition
ICT · Lessons

Check required table or layout features without using obsolete assumptions

A tutorial you found online used tags and tricks that a modern browser, or your task, no longer expects.

On this page
  1. How do you build a table?
  2. How do you check a brief step by step?
  3. Worked example
  4. The mistake to watch for
  5. Check yourself
  6. Where this leads next

Web tasks list required features, and you earn marks by proving each one is present. This skill combines two habits: using tables only for data, and moving appearance out of old presentation tags into CSS. It closes the website authoring module because it is mostly about checking.

How do you build a table?

A table is made of rows (tr), header cells (th) and data cells (td).

<table>
  <caption>Club timetable</caption>
  <tr>
    <th>Day</th>
    <th>Activity</th>
  </tr>
  <tr>
    <td>Monday</td>
    <td>Portraits</td>
  </tr>
  <tr>
    <td>Thursday</td>
    <td>Editing</td>
  </tr>
</table>

The caption names the table. Borders, padding and colour are added with CSS, as in the stylesheet lesson.

How do you check a brief step by step?

  1. List every requirement from the brief as a separate line.
  2. Find the line of code in your file that satisfies each one.
  3. Decide whether the content is data in rows and columns; if so use a table, if not use other elements.
  4. Move any appearance out of the tags: colour, alignment and fonts go in the stylesheet.
  5. Open the page and look at the result, not only the code.
  6. Tick each line only when you can point to its evidence.

Worked example

An invented brief says: show the timetable as a table with a header row, give header cells a light grey background, and centre the page title.

Step 1: the timetable has rows and columns of data, so use table, with th cells in the first row.

Step 2: in the stylesheet, add:

th {
  background-color: lightgrey;
}

h1 {
  text-align: center;
}

Step 3: check against the list: header row present, header background set, title centred. Each has a line of evidence, so each can be ticked.

The mistake to watch for

A common slip is relying on an old habit from an out-of-date guide.

<center><font color="red">Sale</font></center>

The center and font tags are obsolete, and they mix appearance into the content. A second version is using an invisible table to place a menu on the left of the page, which misuses the table. The correction is a plain paragraph with a class, and the look in the stylesheet:

<p class="sale">Sale</p>
.sale {
  text-align: center;
  color: red;
}

Check yourself

1. Which content should go in a table: a price list of four items with prices, or a paragraph describing the club?

Show answer

The price list. It has rows and columns of related data. The paragraph is ordinary text, so it stays in p.

2. In the table above, which cells are th?

Show answer

Day and Activity, the labels in the first row. The other cells are data cells, td.

3. A student wants a blue heading and writes <h2><font color="blue">Events</font></h2>. Give the better version.

Show answer

Use <h2>Events</h2> with a stylesheet rule h2 { color: blue; }.

Where this leads next

Finish the module with the website authoring practice set, which mixes all five skills. Return to the module guide if a skill feels weak, and use the practical task and evidence checker for your own briefs.

Students can build the table correctly and still miss one line of the brief. Our teachers help you check each line in online one-to-one ICT tuition.

Questions people ask

When should I use a table?

Use a table when the content has rows and columns of related data, such as a timetable or a price list. Do not use a table to position the page itself. Page layout belongs in the stylesheet, and tables keep a clear meaning for readers and screen readers.

What is the th element?

It marks a header cell, a label for a row or a column. Browsers show it bold and centred by default, and assistive tools use it to link each data cell to its label. Use th for the labels and td for the data cells.

Are font and center tags still acceptable?

They are obsolete in current HTML and should not be used for presentation. Use CSS properties such as color, font-family and text-align instead. If your task or marking guide names a specific tag, follow the brief, but check the current Cambridge syllabus page for what your exam year expects.

Updated:

Your next step

If you are unsure which features the task really asks for, a one-to-one teacher can go through the brief with you and match each requirement to evidence in your files.

Paid one-hour trial at your assigned teacher’s confirmed rate, starting from RM80. Other fees, schedules and ongoing arrangements are confirmed directly with your teacher after the trial class.

Tuition is arranged with a parent or guardian. Send them this page on WhatsApp and they can enquire for you.

Parent or guardian? Enquire here

9,000+ students helped through our service