Learning objective
Utilize stylesheets effectively. Students should be capable of: Applying CSS within the presentation layer, Developing the presentation layer of a webpage, Creating generic external styles and inline style attributes that include: • Background properties such as color and images • Font properties • Properties for tables, table rows, table headers, and table data, including size, background color, horizontal and vertical alignment, spacing, padding, and borders (including collapsed, color, thickness, and visibility) • Establishing classes that encompass: • Background properties such as color and images • Font properties • Properties for tables, table rows, and table data, including size, background color, horizontal and vertical alignment, spacing, padding, and borders (including collapsed, color, thickness, and visibility) • Creating external styles to be referenced in a webpage for elements like h1, h2, h3, p, and li • Specifying font properties such as font family, size, color, alignment, boldness, and italics • Adding comments to an external stylesheet • Saving styles in cascading stylesheet format. Students should also understand: The role of CSS in the presentation layer, The characteristics of cascading stylesheets, including the distinctions between attached stylesheets and inline style attributes, the hierarchy of multiple attached stylesheets, and inline styles within a webpage, The differences between a style and a class, and The necessity of using relative file paths for attached stylesheets.
Read the explanation, check the common trap, then practise with flashcards and questions.
Exam focus
- Read the explanation.
- Check key terms.
- Practise with linked questions.
Cambridge IGCSE Information and Communication TechnologyWebsite authoring