ICT Lesson 2.1: CSS

0.0(0)
Studied by 1 person
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

flashcard set

Earn XP

Description and Tags

First Quiz on Tuesday Sept 22, 2026

Last updated 8:33 PM on 9/22/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

Cascading Style Sheet

is a language used to describe how HTML elements should appear on a webpage. It controls layout, colors, fonts, spacing, and overall design.

2
New cards

Cascading Style Sheet

separates content (HTML) from presentation (style), making websites easier to maintain and more visually appealing.

3
New cards

1. Controls appearance

2. Improves readability

3. Separates content from presentation

4. Allows consistent design across pages

Main Roles of CSS:

4
New cards

1.Controls Appearance

CSS controls how HTML elements look on a webpage.


It can change:

1. Colors  2.Fonts  3. Sizes  4.Backgrounds

5. Borders  6. Spacing  7.Layouts

8. Animations

5
New cards

2. Improves Readability

Readability refers to how easy it is for users to read and understand content.

CSS improves readability by controlling: font size, font family, text - color

6
New cards

3. Separates Content from Presentation

One of the most important purposes of CSS is separating content from design.

7
New cards

1. Easier Maintenance

Benefit: You only change one CSS rule instead of editing every HTML page.

8
New cards

2. Cleaner Code

Benefit: HTML remains organized and focused on content.

9
New cards

3. Faster Updates

A single CSS file can update the appearance of an entire website.

10
New cards

4. Allows Consistent Design Across Pages

Most websites contain many pages:

Home, About, Contact, Services, Blog


Without CSS, each page would need separate formatting.


Every webpage can use the same CSS file: style.css

11
New cards

Selector, Declaration Block, Declaration

A CSS rule consists of:

12
New cards

Selector

identifies the HTML element(s) to style.

13
New cards

Declaration block

contains one or more declarations separated by semicolons.

14
New cards

Declaration

includes a property and a value.

15
New cards

Inline

Written directly inside an HTML tag

16
New cards

Internal

Written inside <style> tags in the HTML file

17
New cards

External

Written in a separate .css file linked to HTML

18
New cards

HTML

Structure, content, headings, and paragraphs

19
New cards

CSS

appearance, design, colors, fonts, layouts

20
New cards


  Element selector: h1, p

  Class selector: .highlight

  ID selector: #main

  Group selector: h1, h2, h3

  Universal selector: *

  Descendant selector: div p

  Element selector: ?

  Class selector: ?

  ID selector: ?

  Group selector: ?

  Universal selector: ?

  Descendant selector: ?