ITPEC IP April 2024 Question 24

Which of the following is the appropriate reason for using a style sheet in the creation of a website?

Explanation

The appearance of multiple web pages can be easily unified — a style sheet (CSS) keeps the presentation rules apart from the HTML content.

HTML describes the structure and content of a page: headings, paragraphs, lists, links. A style sheet written in CSS (Cascading Style Sheets) specifies how those elements look: fonts, colours, sizes, margins and layout. When every page links to one shared style sheet file, all pages follow the same design, and a change made once in that file, such as a new heading colour, appears on every page.

Answer (d)

Why not others:

  • •(a) — exchanging data safely between the web server and the browser is encryption with HTTPS (TLS), not styling
  • •(b) — notifying users of updates to a site is done by mechanisms such as RSS feeds or e-mail notices
  • •(c) — identifying the users of a site is done by login authentication or cookies

Key rule: HTML marks up content and structure, CSS defines presentation; keeping the presentation in one shared style sheet gives every page the same look and turns a design change into a single edit.

Algorithm and Programming · AI-written, may contain errors

This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official IP past-paper collection or Report an issue.