ICT 0417 – Layout: Editing TablesICT 0417 – Layout
Objective
Be able to edit a table and its contents, including inserting rows and columns, deleting rows and columns, and merging cells.
Key Concepts
- Tables are used to organise data in rows and columns.
- Each table consists of a
<thead> (header) and a <tbody> (body). - Editing a table involves structural changes (rows/columns) and formatting changes (merging cells).
Sample Table
The table below will be used for all examples.
| Item | Quantity | Price (£) | Total (£) |
|---|
| Notebook | 2 | 1.50 | 3.00 |
| Pen | 5 | 0.80 | 4.00 |
| Ruler | 1 | 0.60 | 0.60 |
Inserting Rows
- Place the cursor in the row above or below where the new row is required.
- Use the command Insert → Row Above or Insert → Row Below.
- A blank row is added; fill in the required data.
Inserting Columns
- Select a cell in the column next to where the new column should appear.
- Choose Insert → Column Left or Insert → Column Right.
- The new column inherits the formatting of the surrounding columns.
Deleting Rows
- Select the entire row(s) to be removed (click the row header or drag across the cells).
- Click Delete → Row.
- The selected row(s) disappear and the table contracts.
Deleting Columns
- Select the column(s) you wish to delete.
- Choose Delete → Column.
- All data in the selected column(s) is removed.
Merging Cells
Merging combines two or more adjacent cells into a single larger cell.
- Select the cells you want to merge (they must be contiguous and in the same row or column).
- Click Table Tools → Merge Cells (or right‑click and choose Merge Cells).
- The content of the upper‑left cell is retained; other contents are discarded.
Practical Example: Merging the Header Cells
To create a single heading that spans all four columns:
- Select the four header cells in the
<thead> row. - Choose Merge Cells.
- Enter the new heading text, e.g., “Stationery Order”.
Resulting Table After Editing
| Stationery Order |
|---|
| Item | Quantity | Price (£) | Total (£) |
|---|
| Notebook | 2 | 1.50 | 3.00 |
| Pen | 5 | 0.80 | 4.00 |
| Ruler | 1 | 0.60 | 0.60 |
| Subtotal | 7.60 |
Suggested diagram: Flowchart showing the steps for inserting, deleting, and merging table elements.
Summary Checklist
- Insert rows/columns where additional data is needed.
- Delete rows/columns to remove unnecessary information.
- Merge cells to create headings or combine related data.
- Always verify that calculations (e.g., totals) are updated after structural changes.