CSS (OCR A-Level Computer Science): Flashcards

📚Flashcards
CSS
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

12 cards from this deck

Show

What does CSS stand for?

Cascading Style Sheets

Main purpose of CSS

Control appearance and layout of web pages

Benefit of CSS separating style from structure

Easier to manage and update design of multiple pages

What do CSS selectors do?

Specify which HTML elements a style applies to

Element selector in CSS (e.g., p)

Targets all elements of a specific type

Class selector syntax in CSS

Uses . (e.g., .intro)

ID selector syntax in CSS

Uses # (e.g., #header)

How is inline CSS applied?

Using style attribute directly within HTML element

Internal CSS location

Within <style> tag in <head> section

External CSS method

Linked via separate .css file (preferred method)

What does the CSS colour property do?

Defines the colour of text

What does the CSS background-color property do?

Sets the background color of an element

Explore OCR A-Level Computer Science Revision Notes by Topics

Explore OCR A-Level Computer Science Model Answers by Topics

Explore OCR A-Level Computer Science Quizzes by Topics

Explore OCR A-Level Computer Science Exam Questions by Topics

Join 100,000+ A-Level students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.