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
CSS rules, classes and the cascade
- 3 things to know
- Papers 1 and 3
Overview
Writing CSS rules and classes for backgrounds and fonts, attached and inline styles, and which style takes priority.
What you need to know
Answer each one before you reveal it.
In what order of priority are styles applied, from lowest to highest?
What is a cascading stylesheet?
Questions from this subtopic
Each one with the model answer underneath.
- 1
What is a cascading stylesheet?
Model answer
A cascading stylesheet is a file of style rules, saved as .css, that sets how the elements of web pages look.
- 2
What is the difference between an attached stylesheet and an inline style?
Model answer
An attached stylesheet is a separate file linked to many pages. An inline style is written inside one HTML tag and affects only that element.
- 3
Which takes priority, an inline style or an attached stylesheet?
Model answer
An inline style takes priority, because it is applied closest to the element.
- 4
What is the difference between a style and a class in CSS?
Model answer
A style rule applies to every element of a type, such as every h1. A class is a named set of styles applied only to the elements given that class.
- 5
How is a class written in a stylesheet?
Model answer
A class name begins with a full stop in the stylesheet, such as .warning, and is applied in HTML with class="warning".
- 6
Give four font properties that can be set in CSS.
Model answer
CSS can set the font family, size and colour. CSS can also set alignment, bold and italic.
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.