CSS (OCR A-Level Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
What does CSS stand for?
What does CSS stand for?
Cascading Style Sheets
Main purpose of CSS
Main purpose of CSS
Control appearance and layout of web pages
Benefit of CSS separating style from structure
Benefit of CSS separating style from structure
Easier to manage and update design of multiple pages
What do CSS selectors do?
What do CSS selectors do?
Specify which HTML elements a style applies to
Element selector in CSS (e.g., p)
Element selector in CSS (e.g., p)
Targets all elements of a specific type
Class selector syntax in CSS
Class selector syntax in CSS
Uses . (e.g., .intro)
ID selector syntax in CSS
ID selector syntax in CSS
Uses # (e.g., #header)
How is inline CSS applied?
How is inline CSS applied?
Using style attribute directly within HTML element
Internal CSS location
Internal CSS location
Within <style> tag in <head> section
External CSS method
External CSS method
Linked via separate .css file (preferred method)
What does the CSS colour property do?
What does the CSS colour property do?
Defines the colour of text
What does the CSS background-color property do?
What does the CSS background-color property do?
Sets the background color of an element
