ITP102 WEEK 8 to 9 Introductio to CSS
ITP102 WEEK 8 to 9 Introductio to CSS
Introduction to
Cascading Style Sheets (CSS)
Prepared by:
ITP102 Faculty
At the end of the lesson, the learner
will be able to:
• Define Cascading Style Sheets;
• Compare and contrast the different CSS selectors;
and
• Create a simple web page using CSS.
What is CSS?
CSS stands for Cascading Style Sheets
CSS describes how HTML elements are to be
displayed on screen, paper, or in other
media.
CSS saves a lot of work. It can control the
layout of multiple web pages all at once.
External stylesheets are stored in CSS files.
(w3schools.com)
Why use CSS?
CSS is used to define styles for your web
pages, including the design, layout and
variations in display for different devices and
screen sizes.
CSS Syntax:
CCS Syntax (continuation)
where:
Selector: Selector indicates the HTML
element you want to style. It could be any
tag like <h1>, <title> etc.
Declaration Block: The declaration
block can contain one or more
declarations separated by a semicolon.
Each declaration contains a property
name and value, separated by a colon.
CCS Syntax (continuation)