levo

Web Technology and Multimedia

Styling pages with CSS

  • 3 things to know
  • AS Unit 2

Overview

Cascading style sheet, parts of a CSS rule and three ways a style can be applied to a page.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Describe the parts of a CSS rule.

Key term

What happens to a page if its external style sheet fails to load?

Key term

Why is an external style sheet preferred for a site of several pages?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is a cascading style sheet?

    Model answer

    A cascading style sheet is a set of rules that states how the elements of a web page should be presented, controlling matters such as colour, font, spacing, borders and position.

  2. 2

    Describe the parts of a CSS rule.

    Model answer

    A CSS rule begins with a selector naming the elements it applies to, followed by a block in braces containing one or more declarations, each pairing a property with the value that property should take.

  3. 3

    Name the three ways a style can be applied to a page.

    Model answer

    A style can be written inline in the style attribute of a single element, placed as an internal style sheet in the head of one page, or held in an external file that many pages link to.

  4. 4

    Why is an external style sheet preferred for a site of several pages?

    Model answer

    An external style sheet holds the design in one file that every page links to, so the appearance stays consistent across the site and a change is made once rather than page by page.

  5. 5

    Explain how a single edit can restyle an entire website.

    Model answer

    Every page links to the same external file, so altering a rule in that file changes the presentation of every element it selects on every page as soon as visitors reload.

  6. 6

    What does the word cascading refer to?

    Model answer

    Cascading refers to the way several rules can apply to the same element and are resolved in a defined order of precedence, with the more specific rule and the one closer to the element winning.

Other ways to work this

The same content, four other ways.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

Systems Analysis and Development Approaches
Design, Development and Testing
Implementation and System Security
Programming

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

A check requires a value.
presencerangeformat

Blank Blitz makes facts automatic

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

ANormal data is 12, which should be accepted.
BBoundary data is 1 and 50, which should be accepted.
C0 and 51, just outside the limits, should be rejected.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

One byte is made up of 8 bits.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Web Technology and Multimedia, on a schedule.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.