Photo AI
Last Updated Sep 27, 2025
Revision notes with simplified explanations to understand CSS quickly and effectively.
362+ students studying
CSS (Cascading Style Sheets) is used to control the appearance and layout of web pages. By separating style from structure, CSS makes it easier to manage and update the design of multiple pages at once. It allows you to define visual properties, such as colours, fonts, and positioning, to create a consistent look across a website.
p {colour: black; }
targets all <p>
tags)..intro { font-size: 20px; }
).#header {background-colour: blue; }
).colour
, font-size
), and values specify the styling (e.g., colour: red;
).Example:
h1 {
colour: blue;
font-size: 24px;
}
.main-text {
font-family: Arial, sans-serif;
margin: 10px;
}
style
attribute.<h1 style="colour: blue;">Welcome</h1>
<style>
tag in the HTML document's <head>
section.<style>
p { colour: green; }
</style>
.css
file, which is the preferred method for managing styles across multiple pages.<link rel="stylesheet" href="styles.css">
colour
: Defines the colour of the text.background-color
: Sets the background color of an element.font-family
: Specifies the font.border-style
, border-width
: Define the style and width of an element's border.Example of CSS code:
h1 {
colour: blue;
}
#menu {
background-colour: #A2441B;
}
.infoBox {
background-colour: green;
}
Enhance your understanding with flashcards, quizzes, and exams—designed to help you grasp key concepts, reinforce learning, and master any topic with confidence!
160 flashcards
Flashcards on CSS
Revise key concepts with interactive flashcards.
Try Computer Science Flashcards16 quizzes
Quizzes on CSS
Test your knowledge with fun and engaging quizzes.
Try Computer Science Quizzes29 questions
Exam questions on CSS
Boost your confidence with real exam questions.
Try Computer Science Questions27 exams created
Exam Builder on CSS
Create custom exams across topics for better practice!
Try Computer Science exam builder12 papers
Past Papers on CSS
Practice past papers to reinforce exam experience.
Try Computer Science Past PapersDiscover More Revision Notes Related to CSS to Deepen Your Understanding and Improve Your Mastery
Join 500,000+ A-Level students using SimpleStudy...
Join Thousands of A-Level Students Using SimpleStudy to Learn Smarter, Stay Organized, and Boost Their Grades with Confidence!
Report Improved Results
Recommend to friends
Students Supported
Questions answered