Cambridge IGCSE ICT 0417
Types and Components of Computer Systems
Input and Output Devices
Storage Devices and Media
Networks and the Effects of Using Them
The Effects of Using IT
ICT Applications
The Systems Life Cycle
Communication
File Management
Graphs and Charts
Document Production
Presentations
Spreadsheets
Website Authoring
Styling tables with CSS
- 3 things to know
- Papers 1 and 3
Overview
Table and cell sizes, padding, spacing, alignment, borders and background colours set in CSS.
What you need to know
Answer each one before you reveal it.
What does border-collapse do?
How is a table border made invisible in CSS?
Questions from this subtopic
Each one with the model answer underneath.
- 1
What is the difference between padding and spacing in a table?
Model answer
Padding is the space between the contents of a cell and its border. Spacing is the gap between neighbouring cells.
- 2
What does border-collapse do?
Model answer
Collapsed borders join the borders of neighbouring cells into a single line.
- 3
Write CSS that collapses the borders of a table and gives every cell a 1 pixel black border.
Model answer
The rules table {border-collapse: collapse;} and td, th {border: 1px solid #000000;} give single black lines between cells.
- 4
How is a table border made invisible in CSS?
Model answer
The border style is set to none or hidden, such as table {border-style: none;}.
- 5
Write a CSS rule that gives table data cells 10 pixels of padding.
Model answer
The rule td {padding: 10px;} puts 10 pixels of space between each cell's contents and its border.
- 6
Write a CSS rule that puts a 5 pixel gap between table cells.
Model answer
The rule table {border-spacing: 5px;} sets the gap, which only shows when the borders are not collapsed.
Other ways to work this
The same content, four other ways.
Everything in your subscription
Runs, plus a mode for every other kind of session.
Every question in Website Authoring, on a schedule.
Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.
Or £46 a year, about £3.83 a month. Cancel anytime.