0% found this document useful (0 votes)
14 views

Cascading Style Sheet

CSS is used to style and lay out web pages. It allows controlling the presentation of HTML elements including colors, layout, fonts and more. CSS selectors are used to select the HTML elements to be styled, and can be categorized as simple, combinator, pseudo-class, pseudo-element and attribute selectors.

Uploaded by

Jayashree Borkar
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Cascading Style Sheet

CSS is used to style and lay out web pages. It allows controlling the presentation of HTML elements including colors, layout, fonts and more. CSS selectors are used to select the HTML elements to be styled, and can be categorized as simple, combinator, pseudo-class, pseudo-element and attribute selectors.

Uploaded by

Jayashree Borkar
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 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