SlideShare a Scribd company logo
Introduction to CSS
By - Aursalan Sayed
By - Aursalan Sayed
Webpage with CSS Webpage without CSS
What is CSS?
Cascading Style Sheets, fondly referred to as CSS, is a simple design language intended to
simplify the process of making web pages presentable.
By - Aursalan Sayed
Advantages of CSS
CSS saves time - You can write CSS
once and then reuse the same sheet
in multiple HTML pages. You can
define a style for each HTML
element and apply it to as many
web pages as you want.
Pages load faster - If you are using
CSS, you do not need to write HTML
tag attributes every time. Just write
one CSS rule of a tag and apply it to
all the occurrences of that tag. So,
less code means faster download
times.
Easy maintenance - To make a
global change, simply change the
style, and all the elements in all the
web pages will be updated
automatically.
Superior styles to HTML - CSS has
a much wider array of attributes
than HTML, so you can give a far
better look to your HTML page in
comparison to HTML attributes.
Multiple Device Compatibility -
Style sheets allow content to be
optimized for more than one type
of device. By using the same HTML
document, different versions of a
website can be presented for
handheld devices such as PDAs and
cellphones or for printing.
Global web standards – Now
HTML attributes are being
deprecated and it is being
recommended to use CSS. So it’s a
good idea to start using CSS in all
the HTML pages to make them
compatible with future browsers.
By - Aursalan Sayed
Who Creates and Maintains CSS?
CSS is created and maintained
through a group of people within the
W3C called the CSS Working Group.
The CSS Working Group creates
documents called specifications.
When a specification has been
discussed and officially ratified by the
W3C members, it becomes a
recommendation.
These ratified specifications are called
recommendations because the W3C
has no control over the actual
implementation of the language.
Independent companies and
organizations create that software.
By - Aursalan Sayed
CSS History
CSS was first proposed by Håkon
Wium Lie on October 10, 1994. At
the time, Lie was working with Tim
Berners-Lee at CERN. Several other
style sheet languages for the web
were proposed around the same
time, and discussions on public
mailing lists and inside World Wide
Web Consortium resulted in the first
W3C CSS Recommendation
(CSS1) being released in 1996. In
particular, a proposal by Bert
Bos was influential; he became co-
author of CSS1, and is regarded as co-
creator of CSS.
By - Aursalan Sayed
CSS Versions
CSS 1
The first CSS specification to become an official W3C Recommendation is CSS
level 1, published on December 17, 1996.
CSS 2
CSS level 2 specification was developed by the W3C and published as a
recommendation in May 1998.
CSS 2.1
CSS level 2 revision 1, often referred to as "CSS 2.1", was published as a W3C
Recommendation on 7 June 2011.
CSS 3
Unlike CSS 2, which is a large single specification defining various features, CSS 3
is divided into several separate documents called "modules". Each module adds
new capabilities or extends features defined in CSS 2, preserving backward
compatibility. Work on CSS level 3 started around the time of publication of the
original CSS 2 recommendation. The earliest CSS 3 drafts were published in June
1999.
Due to the modularization, different modules have different stability and statuses.
CSS 4
There is no single, integrated CSS4 specification, because the specification has
been split into many separate modules which level independently.
By - Aursalan Sayed
CSS Syntax
A CSS comprises of style rules that are interpreted by the browser and then applied
to the corresponding elements in your document. A style rule is made of three parts:
• Selector: A selector is an HTML tag at which a style will be applied. This could
be any tag like <h1> or <table> etc.
• Property: A property is a type of attribute of HTML tag. Put simply, all the
HTML attributes are converted into CSS properties. They could be color, border,
etc.
• Value: Values are assigned to properties. For example, color property can have
the value either red or #F1F1F1 etc.
You can put CSS Style Rule Syntax as follows:
selector { property: value }
Example: You can define a table border as follows:
table { border :1px solid #C00; }
Here table is a selector and border is a property and the given value 1px solid #C00
is the value of that property.
By - Aursalan Sayed
CSS Inclusion
Embedded
CSS - The
<style>
Element
Inline CSS -
The style
Attribute
External
CSS - The
<link>
Element
Imported
CSS -
@import
Rule
By - Aursalan Sayed
Introduction to CSS

More Related Content

PDF
The Dark Arts of CSS
PDF
Introduction to the Web and HTML
PDF
Organize Your Website With Advanced CSS Tricks
PPTX
Html and css
PPTX
Web development using HTML and CSS
PPTX
CSS introduction
PPT
CSS Introduction
PPTX
html & css
The Dark Arts of CSS
Introduction to the Web and HTML
Organize Your Website With Advanced CSS Tricks
Html and css
Web development using HTML and CSS
CSS introduction
CSS Introduction
html & css

What's hot (20)

PPTX
Web programming css
PPTX
HTML and CSS
PPSX
Introduction to css
PDF
Introduction to css
PPTX
Css introduction
PPT
PPTX
Html n CSS
PPTX
1 03 - CSS Introduction
PPTX
Introducing Cascading Style Sheets
PPTX
Html & CSS
PPTX
Cascading style sheets (CSS)
PPT
Introduction to CSS
PPT
Cascading Style Sheets (CSS) help
PPTX
Cascading Style Sheets (CSS)
PPTX
Week 12 CSS - Review from last week
PPT
Cascading Style Sheets
PPTX
Web1O1 - Intro to HTML/CSS
PPSX
Steph's Html5 and css presentation
PPTX
Introduction to CSS
Web programming css
HTML and CSS
Introduction to css
Introduction to css
Css introduction
Html n CSS
1 03 - CSS Introduction
Introducing Cascading Style Sheets
Html & CSS
Cascading style sheets (CSS)
Introduction to CSS
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS)
Week 12 CSS - Review from last week
Cascading Style Sheets
Web1O1 - Intro to HTML/CSS
Steph's Html5 and css presentation
Introduction to CSS
Ad

Similar to Introduction to CSS (20)

PPTX
intro_To_HTML_and__CSS_using_presentation.pptx
PDF
Chapter 3 - CSS.pdf
PDF
The CSS Handbook
PDF
Vskills certified css designer Notes
PDF
Css Quick Syntax Reference Guide 1st Edition Mikael Olsson Auth
PPTX
PPTX
cascading style sheet(css).pptx
PPTX
Cashcading stylesheets
PPTX
lesson-1-introduction-html-and-css.pptx
PPTX
Cascading Style Sheets for web browser.pptx
PDF
Css tutorial
PDF
Css - Tutorial
PDF
CSS: The Definitive Guide, 5th Edition (Early Release) Eric Meyer
PPTX
PPTX
CSS Stylesheet Training
DOCX
PPTX
Complete Lecture on Css presentation
PDF
intro_To_HTML_and__CSS_using_presentation.pptx
Chapter 3 - CSS.pdf
The CSS Handbook
Vskills certified css designer Notes
Css Quick Syntax Reference Guide 1st Edition Mikael Olsson Auth
cascading style sheet(css).pptx
Cashcading stylesheets
lesson-1-introduction-html-and-css.pptx
Cascading Style Sheets for web browser.pptx
Css tutorial
Css - Tutorial
CSS: The Definitive Guide, 5th Edition (Early Release) Eric Meyer
CSS Stylesheet Training
Complete Lecture on Css presentation
Ad

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Modernizing your data center with Dell and AMD
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Cloud computing and distributed systems.
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Big Data Technologies - Introduction.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPT
Teaching material agriculture food technology
Network Security Unit 5.pdf for BCA BBA.
Modernizing your data center with Dell and AMD
Understanding_Digital_Forensics_Presentation.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
NewMind AI Weekly Chronicles - August'25 Week I
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Unlocking AI with Model Context Protocol (MCP)
Digital-Transformation-Roadmap-for-Companies.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Cloud computing and distributed systems.
The Rise and Fall of 3GPP – Time for a Sabbatical?
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation_ Review paper, used for researhc scholars
Big Data Technologies - Introduction.pptx
Chapter 3 Spatial Domain Image Processing.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Review of recent advances in non-invasive hemoglobin estimation
Teaching material agriculture food technology

Introduction to CSS

  • 1. Introduction to CSS By - Aursalan Sayed
  • 2. By - Aursalan Sayed Webpage with CSS Webpage without CSS
  • 3. What is CSS? Cascading Style Sheets, fondly referred to as CSS, is a simple design language intended to simplify the process of making web pages presentable. By - Aursalan Sayed
  • 4. Advantages of CSS CSS saves time - You can write CSS once and then reuse the same sheet in multiple HTML pages. You can define a style for each HTML element and apply it to as many web pages as you want. Pages load faster - If you are using CSS, you do not need to write HTML tag attributes every time. Just write one CSS rule of a tag and apply it to all the occurrences of that tag. So, less code means faster download times. Easy maintenance - To make a global change, simply change the style, and all the elements in all the web pages will be updated automatically. Superior styles to HTML - CSS has a much wider array of attributes than HTML, so you can give a far better look to your HTML page in comparison to HTML attributes. Multiple Device Compatibility - Style sheets allow content to be optimized for more than one type of device. By using the same HTML document, different versions of a website can be presented for handheld devices such as PDAs and cellphones or for printing. Global web standards – Now HTML attributes are being deprecated and it is being recommended to use CSS. So it’s a good idea to start using CSS in all the HTML pages to make them compatible with future browsers. By - Aursalan Sayed
  • 5. Who Creates and Maintains CSS? CSS is created and maintained through a group of people within the W3C called the CSS Working Group. The CSS Working Group creates documents called specifications. When a specification has been discussed and officially ratified by the W3C members, it becomes a recommendation. These ratified specifications are called recommendations because the W3C has no control over the actual implementation of the language. Independent companies and organizations create that software. By - Aursalan Sayed
  • 6. CSS History CSS was first proposed by Håkon Wium Lie on October 10, 1994. At the time, Lie was working with Tim Berners-Lee at CERN. Several other style sheet languages for the web were proposed around the same time, and discussions on public mailing lists and inside World Wide Web Consortium resulted in the first W3C CSS Recommendation (CSS1) being released in 1996. In particular, a proposal by Bert Bos was influential; he became co- author of CSS1, and is regarded as co- creator of CSS. By - Aursalan Sayed
  • 7. CSS Versions CSS 1 The first CSS specification to become an official W3C Recommendation is CSS level 1, published on December 17, 1996. CSS 2 CSS level 2 specification was developed by the W3C and published as a recommendation in May 1998. CSS 2.1 CSS level 2 revision 1, often referred to as "CSS 2.1", was published as a W3C Recommendation on 7 June 2011. CSS 3 Unlike CSS 2, which is a large single specification defining various features, CSS 3 is divided into several separate documents called "modules". Each module adds new capabilities or extends features defined in CSS 2, preserving backward compatibility. Work on CSS level 3 started around the time of publication of the original CSS 2 recommendation. The earliest CSS 3 drafts were published in June 1999. Due to the modularization, different modules have different stability and statuses. CSS 4 There is no single, integrated CSS4 specification, because the specification has been split into many separate modules which level independently. By - Aursalan Sayed
  • 8. CSS Syntax A CSS comprises of style rules that are interpreted by the browser and then applied to the corresponding elements in your document. A style rule is made of three parts: • Selector: A selector is an HTML tag at which a style will be applied. This could be any tag like <h1> or <table> etc. • Property: A property is a type of attribute of HTML tag. Put simply, all the HTML attributes are converted into CSS properties. They could be color, border, etc. • Value: Values are assigned to properties. For example, color property can have the value either red or #F1F1F1 etc. You can put CSS Style Rule Syntax as follows: selector { property: value } Example: You can define a table border as follows: table { border :1px solid #C00; } Here table is a selector and border is a property and the given value 1px solid #C00 is the value of that property. By - Aursalan Sayed
  • 9. CSS Inclusion Embedded CSS - The <style> Element Inline CSS - The style Attribute External CSS - The <link> Element Imported CSS - @import Rule By - Aursalan Sayed