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]
(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:
(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]
Everything you need to excel in your exams