Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 7

CSS

Cascading Style Sheet


Understanding the Syntax of CSS

CSS Selectors

Topics to Inserting CSS in an HTML Document

be CSS properties to work with background of a Page

covered CSS properties to work with Fonts and Text Styles

CSS properties for positioning an element


Source Output in
the
code browser
Syntax for CSS
UNDERSTANDING CSS
CSS stands
for Cascading Style Sh
eets

CSS describes how
HTML elements are
External stylesheets
What is CSS? to be displayed on
are stored in CSS files
screen, paper, or in
other media

CSS saves a lot of
work. It can control
the layout of multiple
web pages all at once
CSS selectors are used to find/ select/mention the HTML elements you want to style.
We can divide CSS selectors into five categories:

Simple selectors (select elements based on name, id, class)

Combinator selectors (select elements based on a specific


relationship between them)

Pseudo-class selectors (select elements based on a certain


state)

Pseudo-elements selectors (select and style a part of an element)

Attribute selectors (select elements based on an attribute or attribute


value)

You might also like