A web designer uses Cascading Style Sheets (CSS) to style a website. (a) Explain what CSS is and what it is used for. [2] (b) Give three advantages of using...

Assessment: Information and Communication Technology (9-1) 0983 | Paper 1 Mock 21 | Theory Subject: Information and Communication Technology - 0417

Question 1 Report

A web designer uses Cascading Style Sheets (CSS) to style a website.

(a) Explain what CSS is and what it is used for. [2]

(b) Give three advantages of using an external CSS file rather than applying styles directly to each HTML element. [3]

(c) Explain what is meant by 'cascading' in CSS. [1]

Answer Details

(a) CSS (Cascading Style Sheets) is a stylesheet language used to control the visual appearance and layout of HTML elements on a web page. [1] It separates the content of a page (defined in HTML) from its presentation (defined in CSS), allowing designers to change the entire look of a website without altering the underlying HTML structure. [1]

(b) Three advantages of using an external CSS file:

  1. Style changes only need to be made in one central CSS file, and those changes automatically apply to every page that links to it, saving significant time on a multi-page site. [1]
  2. All pages on the website share the same stylesheet, guaranteeing a consistent visual appearance across the entire site. [1]
  3. The HTML files are smaller and cleaner because they do not contain inline style code. This improves loading speed and makes the HTML easier to read and maintain. [1]

(c) "Cascading" means that when multiple style rules could apply to the same element, CSS resolves the conflict by applying rules in a defined order of priority (specificity and source order) to determine which style ultimately takes effect. [1]

Download The App On Google Playstore

Everything you need to excel in your exams

Green Bridge CBT Mobile App
Personalized AI Learning Chat Assistant
200,000+ Exam Questions Across IGCSE, JAMB, WAEC & NECO
Over 3,900 Lesson Notes
Offline Support - Learn Anytime, Anywhere
Green Bridge Timetable
Literature Summaries & Potential Questions
Track Your Performance & Progress
In-depth Explanations for Comprehensive Learning