SlideShare a Scribd company logo
IN A ROCKET
Learn front-end development at rocket speed
CSS CSS FUNDAMENTALS
Specificity
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
CASCADE SPECIFICITY
+
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
Web page title
index.html
HTML CSS
h1 { color: blue; }
p { color: red; }
input { color: pink; }
h1 { color: green; }
CASCADE
I'm a header
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
Web page title
index.html
HTML CSS
<html>
<head>
<link rel="stylesheet" href="styles.css">
<style>
h1 { color: blue; }
</style>
</head>
<body>
<h1 style="color: green">I'm a header</h1>
</body>
</html>
CASCADE
I'm a header
h1 { color: red; }
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
CASCADE SPECIFICITY
+
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
HTML CSS
Browser
SPECIFICITY
<body>
<header>
<h1>I'm a header</h1>
</header>
</body>
header h1 { color: green; }
h1 { color: blue; }
Web page title
index.html
I'm a header
The h1 selector position is better for cascade, 

but header h1 prevails because is more specific.
READY TO USE CODE
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
ElementClass
Pseudo-class
Attribute
IDInline
(style attribute)
selector
0 000
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
•Soy el primer enlace de una lista.

•Soy el segundo enlace de una lista.

•Soy el tercer enlace de una lista.
My links list
index.html
ul li a
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
ElementClass
Pseudo-class
Attribute
IDInline
(style attribute)
ul li a
0 000
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
ElementClass
Pseudo-class
Attribute
IDInline
(style attribute)
ul li a
0 300
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
•Soy el primer enlace de una lista.

•Soy el segundo enlace de una lista.

•Soy el tercer enlace de una lista.
My links list
index.html
ul li a
.lk-list
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
ElementClass
Pseudo-class
Attribute
IDInline
(style attribute)
.lk-list
0 000
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
ElementClass
Pseudo-class
Attribute
IDInline
(style attribute)
.lk-list
1 000
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
•Soy el primer enlace de una lista.

•Soy el segundo enlace de una lista.

•Soy el tercer enlace de una lista.
My links list
index.html
ul li a
.lk-list
#lk-list
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
ElementClass
Pseudo-class
Attribute
IDInline
(style attribute)
#lk-list
0 000
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
ElementClass
Pseudo-class
Attribute
IDInline
(style attribute)
#lk-list
0 010
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
CAUTION
•Soy el primer enlace de una lista.

•Soy el segundo enlace de una lista.

•Soy el tercer enlace de una lista.
My links list
index.html
ul li a
.lk-list
#lk-list { }
<a style=""...
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
ElementClass
Pseudo-class
Attribute
IDInline
(style attribute)
<a style=""...
0 000
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
ElementClass
Pseudo-class
Attribute
IDInline
(style attribute)
<a style=""...
0 001
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
LET'S PLAY!
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
ElementClass
Pseudo-class
Attribute
IDInline
html body div div h2
0 000
ElementClass
Pseudo-class
Attribute
IDInline
.header-important
0 000
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
ElementClass
Pseudo-class
Attribute
IDInline
html body div div h2
0 500
ElementClass
Pseudo-class
Attribute
IDInline
.header-important
1 000
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
ElementClass
Pseudo-class
Attribute
IDInline
#info
0 000
ElementClass
Pseudo-class
Attribute
IDInline
.box .info p
0 000
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
ElementClass
Pseudo-class
Attribute
IDInline
#info
0 010
ElementClass
Pseudo-class
Attribute
IDInline
.box .info p
2 100
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
ElementClass
Pseudo-class
Attribute
IDInline
ul#nav li.active a
0 000
ElementClass
Pseudo-class
Attribute
IDInline
#lk-special
0 000
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
ElementClass
Pseudo-class
Attribute
IDInline
ul#nav li.active a
1 310
ElementClass
Pseudo-class
Attribute
IDInline
#lk-special
0 010
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
ElementClass
Pseudo-class
Attribute
IDInline
#box ul li a
0 000
ElementClass
Pseudo-class
Attribute
IDInline
li a .lk-important
0 000
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
ElementClass
Pseudo-class
Attribute
IDInline
#box ul li a
0 310
ElementClass
Pseudo-class
Attribute
IDInline
li a .lk-important
1 200
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
SPECIFICITY WARS
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
TOOLS: SPECIFICITY CALCULATOR
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
TOOLS: VISUAL STUDIO CODE
Just hover your pointer over a selector
CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com
CASCADE SPECIFICITY
+
Learn front-end development at rocket speed
inarocket.com
by miguelsanchez.com
YOU CAN CONTINUE THIS COURSE FOR FREE ON
+ READY TO USE CODE
+ QUIZZES
+ FREE UPDATES
We respect your time

No more blah blah videos. Just straight to
the point slides with relevant information.
Ready to use code

Real code you can just copy and paste into
your real projects.
Step by step guides

Clear and concise steps to build real use
solutions. No missed points.
Learn front-end development at rocket speed
inarocket.com
IN A ROCKET
Learn front-end development at rocket speed
CSS CSS FUNDAMENTALS
Specificity

More Related Content

What's hot (20)

Styling with CSS
Styling with CSSStyling with CSS
Styling with CSS
Mike Crabb
 
Flexible site structure with cake php
Flexible site structure with cake phpFlexible site structure with cake php
Flexible site structure with cake php
andygale
 
HTML Bootstrap Workshop
HTML Bootstrap WorkshopHTML Bootstrap Workshop
HTML Bootstrap Workshop
vincentleeuwen
 
Layout with CSS
Layout with CSSLayout with CSS
Layout with CSS
Mike Crabb
 
Web Design Bootcamp - Day1
Web Design Bootcamp - Day1Web Design Bootcamp - Day1
Web Design Bootcamp - Day1
Aslam Najeebdeen
 
Intro to WordPress theme development
Intro to WordPress theme developmentIntro to WordPress theme development
Intro to WordPress theme development
Thad Allender
 
Rapid and Responsive - UX to Prototype with Bootstrap
Rapid and Responsive - UX to Prototype with BootstrapRapid and Responsive - UX to Prototype with Bootstrap
Rapid and Responsive - UX to Prototype with Bootstrap
Josh Jeffryes
 
WordPress theme frameworks
WordPress theme frameworksWordPress theme frameworks
WordPress theme frameworks
Eddie Johnston
 
Even faster web sites presentation 3
Even faster web sites presentation 3Even faster web sites presentation 3
Even faster web sites presentation 3
Felipe Lavín
 
An Intro to HTML & CSS
An Intro to HTML & CSSAn Intro to HTML & CSS
An Intro to HTML & CSS
Shay Howe
 
Please dont touch-3.6-jsday
Please dont touch-3.6-jsdayPlease dont touch-3.6-jsday
Please dont touch-3.6-jsday
Francesco Fullone
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
Mario Hernandez
 
Modular HTML & CSS Turbo Workshop
Modular HTML & CSS Turbo WorkshopModular HTML & CSS Turbo Workshop
Modular HTML & CSS Turbo Workshop
Shay Howe
 
Intro to CSS
Intro to CSSIntro to CSS
Intro to CSS
Randy Oest II
 
Modular HTML & CSS Workshop
Modular HTML & CSS WorkshopModular HTML & CSS Workshop
Modular HTML & CSS Workshop
Shay Howe
 
Web 102 INtro to CSS
Web 102  INtro to CSSWeb 102  INtro to CSS
Web 102 INtro to CSS
Hawkman Academy
 
Even faster web sites
Even faster web sitesEven faster web sites
Even faster web sites
Felipe Lavín
 
Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3
Todd Zaki Warfel
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
danpaquette
 
ARTDM 171, Week 5: CSS
ARTDM 171, Week 5: CSSARTDM 171, Week 5: CSS
ARTDM 171, Week 5: CSS
Gilbert Guerrero
 
Styling with CSS
Styling with CSSStyling with CSS
Styling with CSS
Mike Crabb
 
Flexible site structure with cake php
Flexible site structure with cake phpFlexible site structure with cake php
Flexible site structure with cake php
andygale
 
HTML Bootstrap Workshop
HTML Bootstrap WorkshopHTML Bootstrap Workshop
HTML Bootstrap Workshop
vincentleeuwen
 
Layout with CSS
Layout with CSSLayout with CSS
Layout with CSS
Mike Crabb
 
Web Design Bootcamp - Day1
Web Design Bootcamp - Day1Web Design Bootcamp - Day1
Web Design Bootcamp - Day1
Aslam Najeebdeen
 
Intro to WordPress theme development
Intro to WordPress theme developmentIntro to WordPress theme development
Intro to WordPress theme development
Thad Allender
 
Rapid and Responsive - UX to Prototype with Bootstrap
Rapid and Responsive - UX to Prototype with BootstrapRapid and Responsive - UX to Prototype with Bootstrap
Rapid and Responsive - UX to Prototype with Bootstrap
Josh Jeffryes
 
WordPress theme frameworks
WordPress theme frameworksWordPress theme frameworks
WordPress theme frameworks
Eddie Johnston
 
Even faster web sites presentation 3
Even faster web sites presentation 3Even faster web sites presentation 3
Even faster web sites presentation 3
Felipe Lavín
 
An Intro to HTML & CSS
An Intro to HTML & CSSAn Intro to HTML & CSS
An Intro to HTML & CSS
Shay Howe
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
Mario Hernandez
 
Modular HTML & CSS Turbo Workshop
Modular HTML & CSS Turbo WorkshopModular HTML & CSS Turbo Workshop
Modular HTML & CSS Turbo Workshop
Shay Howe
 
Modular HTML & CSS Workshop
Modular HTML & CSS WorkshopModular HTML & CSS Workshop
Modular HTML & CSS Workshop
Shay Howe
 
Even faster web sites
Even faster web sitesEven faster web sites
Even faster web sites
Felipe Lavín
 
Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3
Todd Zaki Warfel
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
danpaquette
 

Similar to 13- Learn CSS Fundamentals / Specificity (20)

css v1 guru
css v1 gurucss v1 guru
css v1 guru
GuruPada Das
 
12- Learn CSS Fundamentals / Mix & group
12- Learn CSS Fundamentals / Mix & group12- Learn CSS Fundamentals / Mix & group
12- Learn CSS Fundamentals / Mix & group
In a Rocket
 
Css
CssCss
Css
myrajendra
 
Css 101
Css 101Css 101
Css 101
Rhyan Mahazudin
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
Amit Tyagi
 
Cascading style-sheet-
Cascading style-sheet-Cascading style-sheet-
Cascading style-sheet-
Nimrakhan89
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Erin M. Kidwell
 
FFW Gabrovo PMG - CSS
FFW Gabrovo PMG - CSSFFW Gabrovo PMG - CSS
FFW Gabrovo PMG - CSS
Toni Kolev
 
An Introduction to Cascading Style Sheets (CSS3)
An Introduction to Cascading Style Sheets (CSS3)An Introduction to Cascading Style Sheets (CSS3)
An Introduction to Cascading Style Sheets (CSS3)
Ardee Aram
 
Lab#1 - Front End Development
Lab#1 - Front End DevelopmentLab#1 - Front End Development
Lab#1 - Front End Development
Walid Ashraf
 
Make Css easy(part:2) : easy tips for css(part:2)
Make Css easy(part:2) : easy tips for css(part:2)Make Css easy(part:2) : easy tips for css(part:2)
Make Css easy(part:2) : easy tips for css(part:2)
shabab shihan
 
Basic css
Basic cssBasic css
Basic css
Gopinath Ambothi
 
11- Learn CSS Fundamentals / Combinators
11- Learn CSS Fundamentals / Combinators11- Learn CSS Fundamentals / Combinators
11- Learn CSS Fundamentals / Combinators
In a Rocket
 
CSS
CSSCSS
CSS
Md. Sirajus Salayhin
 
Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
Michael Jhon
 
css-presentation.ppt
css-presentation.pptcss-presentation.ppt
css-presentation.ppt
prathur68
 
Css week11 2020 2021 for g10 by eng.osama ghandour
Css week11 2020 2021 for g10 by eng.osama ghandourCss week11 2020 2021 for g10 by eng.osama ghandour
Css week11 2020 2021 for g10 by eng.osama ghandour
Osama Ghandour Geris
 
Introduction to Cascading Style Sheets
Introduction to Cascading Style SheetsIntroduction to Cascading Style Sheets
Introduction to Cascading Style Sheets
Tushar Joshi
 
Unit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.pptUnit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.ppt
TusharTikia
 
CSS
CSSCSS
CSS
Vladimir Zhidal
 
12- Learn CSS Fundamentals / Mix & group
12- Learn CSS Fundamentals / Mix & group12- Learn CSS Fundamentals / Mix & group
12- Learn CSS Fundamentals / Mix & group
In a Rocket
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
Amit Tyagi
 
Cascading style-sheet-
Cascading style-sheet-Cascading style-sheet-
Cascading style-sheet-
Nimrakhan89
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Erin M. Kidwell
 
FFW Gabrovo PMG - CSS
FFW Gabrovo PMG - CSSFFW Gabrovo PMG - CSS
FFW Gabrovo PMG - CSS
Toni Kolev
 
An Introduction to Cascading Style Sheets (CSS3)
An Introduction to Cascading Style Sheets (CSS3)An Introduction to Cascading Style Sheets (CSS3)
An Introduction to Cascading Style Sheets (CSS3)
Ardee Aram
 
Lab#1 - Front End Development
Lab#1 - Front End DevelopmentLab#1 - Front End Development
Lab#1 - Front End Development
Walid Ashraf
 
Make Css easy(part:2) : easy tips for css(part:2)
Make Css easy(part:2) : easy tips for css(part:2)Make Css easy(part:2) : easy tips for css(part:2)
Make Css easy(part:2) : easy tips for css(part:2)
shabab shihan
 
11- Learn CSS Fundamentals / Combinators
11- Learn CSS Fundamentals / Combinators11- Learn CSS Fundamentals / Combinators
11- Learn CSS Fundamentals / Combinators
In a Rocket
 
Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
Michael Jhon
 
css-presentation.ppt
css-presentation.pptcss-presentation.ppt
css-presentation.ppt
prathur68
 
Css week11 2020 2021 for g10 by eng.osama ghandour
Css week11 2020 2021 for g10 by eng.osama ghandourCss week11 2020 2021 for g10 by eng.osama ghandour
Css week11 2020 2021 for g10 by eng.osama ghandour
Osama Ghandour Geris
 
Introduction to Cascading Style Sheets
Introduction to Cascading Style SheetsIntroduction to Cascading Style Sheets
Introduction to Cascading Style Sheets
Tushar Joshi
 
Unit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.pptUnit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.ppt
TusharTikia
 
Ad

More from In a Rocket (11)

3- Learn Flexbox & CSS Grid / Container & items
3- Learn Flexbox & CSS Grid / Container & items3- Learn Flexbox & CSS Grid / Container & items
3- Learn Flexbox & CSS Grid / Container & items
In a Rocket
 
2- Learn Flexbox & CSS Grid / Context
2- Learn Flexbox & CSS Grid / Context2- Learn Flexbox & CSS Grid / Context
2- Learn Flexbox & CSS Grid / Context
In a Rocket
 
1- Learn Flexbox & CSS Grid / Environment setup
1- Learn Flexbox & CSS Grid / Environment setup1- Learn Flexbox & CSS Grid / Environment setup
1- Learn Flexbox & CSS Grid / Environment setup
In a Rocket
 
17- Learn CSS Fundamentals / Units
17- Learn CSS Fundamentals / Units17- Learn CSS Fundamentals / Units
17- Learn CSS Fundamentals / Units
In a Rocket
 
16- Learn CSS Fundamentals / Background
16- Learn CSS Fundamentals / Background16- Learn CSS Fundamentals / Background
16- Learn CSS Fundamentals / Background
In a Rocket
 
15- Learn CSS Fundamentals / Color
15- Learn CSS Fundamentals / Color15- Learn CSS Fundamentals / Color
15- Learn CSS Fundamentals / Color
In a Rocket
 
8- Learn CSS Fundamentals / Attribute selectors
8- Learn CSS Fundamentals / Attribute selectors8- Learn CSS Fundamentals / Attribute selectors
8- Learn CSS Fundamentals / Attribute selectors
In a Rocket
 
2- Learn HTML Fundamentals / Text Formatting
2- Learn HTML Fundamentals / Text Formatting2- Learn HTML Fundamentals / Text Formatting
2- Learn HTML Fundamentals / Text Formatting
In a Rocket
 
1- Learn HTML Fundamentals / Start in 5 Minutes
1- Learn HTML Fundamentals / Start in 5 Minutes1- Learn HTML Fundamentals / Start in 5 Minutes
1- Learn HTML Fundamentals / Start in 5 Minutes
In a Rocket
 
Learn SUIT: CSS Naming Convention
Learn SUIT: CSS Naming ConventionLearn SUIT: CSS Naming Convention
Learn SUIT: CSS Naming Convention
In a Rocket
 
Learn BEM: CSS Naming Convention
Learn BEM: CSS Naming ConventionLearn BEM: CSS Naming Convention
Learn BEM: CSS Naming Convention
In a Rocket
 
3- Learn Flexbox & CSS Grid / Container & items
3- Learn Flexbox & CSS Grid / Container & items3- Learn Flexbox & CSS Grid / Container & items
3- Learn Flexbox & CSS Grid / Container & items
In a Rocket
 
2- Learn Flexbox & CSS Grid / Context
2- Learn Flexbox & CSS Grid / Context2- Learn Flexbox & CSS Grid / Context
2- Learn Flexbox & CSS Grid / Context
In a Rocket
 
1- Learn Flexbox & CSS Grid / Environment setup
1- Learn Flexbox & CSS Grid / Environment setup1- Learn Flexbox & CSS Grid / Environment setup
1- Learn Flexbox & CSS Grid / Environment setup
In a Rocket
 
17- Learn CSS Fundamentals / Units
17- Learn CSS Fundamentals / Units17- Learn CSS Fundamentals / Units
17- Learn CSS Fundamentals / Units
In a Rocket
 
16- Learn CSS Fundamentals / Background
16- Learn CSS Fundamentals / Background16- Learn CSS Fundamentals / Background
16- Learn CSS Fundamentals / Background
In a Rocket
 
15- Learn CSS Fundamentals / Color
15- Learn CSS Fundamentals / Color15- Learn CSS Fundamentals / Color
15- Learn CSS Fundamentals / Color
In a Rocket
 
8- Learn CSS Fundamentals / Attribute selectors
8- Learn CSS Fundamentals / Attribute selectors8- Learn CSS Fundamentals / Attribute selectors
8- Learn CSS Fundamentals / Attribute selectors
In a Rocket
 
2- Learn HTML Fundamentals / Text Formatting
2- Learn HTML Fundamentals / Text Formatting2- Learn HTML Fundamentals / Text Formatting
2- Learn HTML Fundamentals / Text Formatting
In a Rocket
 
1- Learn HTML Fundamentals / Start in 5 Minutes
1- Learn HTML Fundamentals / Start in 5 Minutes1- Learn HTML Fundamentals / Start in 5 Minutes
1- Learn HTML Fundamentals / Start in 5 Minutes
In a Rocket
 
Learn SUIT: CSS Naming Convention
Learn SUIT: CSS Naming ConventionLearn SUIT: CSS Naming Convention
Learn SUIT: CSS Naming Convention
In a Rocket
 
Learn BEM: CSS Naming Convention
Learn BEM: CSS Naming ConventionLearn BEM: CSS Naming Convention
Learn BEM: CSS Naming Convention
In a Rocket
 
Ad

Recently uploaded (17)

Networking_Essentials_version_3.0_-_Module_7.pptx
Networking_Essentials_version_3.0_-_Module_7.pptxNetworking_Essentials_version_3.0_-_Module_7.pptx
Networking_Essentials_version_3.0_-_Module_7.pptx
elestirmen
 
How to Make Money as a Cam Model – Tips, Tools & Real Talk
How to Make Money as a Cam Model – Tips, Tools & Real TalkHow to Make Money as a Cam Model – Tips, Tools & Real Talk
How to Make Money as a Cam Model – Tips, Tools & Real Talk
Cam Sites Expert
 
OSI_Security_Architecture Computer Science.pptx
OSI_Security_Architecture Computer Science.pptxOSI_Security_Architecture Computer Science.pptx
OSI_Security_Architecture Computer Science.pptx
faizanaseem873
 
AI REPLACING HUMANS /FATHER OF AI/BIRTH OF AI
AI REPLACING HUMANS /FATHER OF AI/BIRTH OF AIAI REPLACING HUMANS /FATHER OF AI/BIRTH OF AI
AI REPLACING HUMANS /FATHER OF AI/BIRTH OF AI
skdav34
 
5 Reasons cheap WordPress hosting is costing you more | Reversed Out
5 Reasons cheap WordPress hosting is costing you more | Reversed Out5 Reasons cheap WordPress hosting is costing you more | Reversed Out
5 Reasons cheap WordPress hosting is costing you more | Reversed Out
Reversed Out Creative
 
basic to advance network security concepts
basic to advance network security conceptsbasic to advance network security concepts
basic to advance network security concepts
amansinght675
 
ARTIFICIAL INTELLIGENCE.pptx2565567765676
ARTIFICIAL INTELLIGENCE.pptx2565567765676ARTIFICIAL INTELLIGENCE.pptx2565567765676
ARTIFICIAL INTELLIGENCE.pptx2565567765676
areebaimtiazpmas
 
Frontier Unlimited Internet Setup Step-by-Step Guide.pdf
Frontier Unlimited Internet Setup Step-by-Step Guide.pdfFrontier Unlimited Internet Setup Step-by-Step Guide.pdf
Frontier Unlimited Internet Setup Step-by-Step Guide.pdf
Internet Bundle Now
 
all Practical Project LAST summary note.docx
all Practical Project LAST summary note.docxall Practical Project LAST summary note.docx
all Practical Project LAST summary note.docx
seidjemal94
 
原版西班牙马拉加大学毕业证(UMA毕业证书)如何办理
原版西班牙马拉加大学毕业证(UMA毕业证书)如何办理原版西班牙马拉加大学毕业证(UMA毕业证书)如何办理
原版西班牙马拉加大学毕业证(UMA毕业证书)如何办理
Taqyea
 
Presentation About The Buttons | Selma SALTIK
Presentation About The Buttons | Selma SALTIKPresentation About The Buttons | Selma SALTIK
Presentation About The Buttons | Selma SALTIK
SELMA SALTIK
 
HPC_Course_Presentation_No_Images included.pptx
HPC_Course_Presentation_No_Images included.pptxHPC_Course_Presentation_No_Images included.pptx
HPC_Course_Presentation_No_Images included.pptx
naziaahmadnm
 
Transport Conjjjjjjjjjjjjjjjjjjjjjjjsulting by Slidesgo.pptx
Transport Conjjjjjjjjjjjjjjjjjjjjjjjsulting by Slidesgo.pptxTransport Conjjjjjjjjjjjjjjjjjjjjjjjsulting by Slidesgo.pptx
Transport Conjjjjjjjjjjjjjjjjjjjjjjjsulting by Slidesgo.pptx
ssuser80a7e81
 
Cloud VPS Provider in India: The Best Hosting Solution for Your Business
Cloud VPS Provider in India: The Best Hosting Solution for Your BusinessCloud VPS Provider in India: The Best Hosting Solution for Your Business
Cloud VPS Provider in India: The Best Hosting Solution for Your Business
DanaJohnson510230
 
Essential Tech Stack for Effective Shopify Dropshipping Integration.pdf
Essential Tech Stack for Effective Shopify Dropshipping Integration.pdfEssential Tech Stack for Effective Shopify Dropshipping Integration.pdf
Essential Tech Stack for Effective Shopify Dropshipping Integration.pdf
CartCoders
 
10 Latest Technologies and Their Benefits to End.pptx
10 Latest Technologies and Their Benefits to End.pptx10 Latest Technologies and Their Benefits to End.pptx
10 Latest Technologies and Their Benefits to End.pptx
EphraimOOghodero
 
Networking concepts from zero to hero that covers the security aspects
Networking concepts from zero to hero that covers the security aspectsNetworking concepts from zero to hero that covers the security aspects
Networking concepts from zero to hero that covers the security aspects
amansinght675
 
Networking_Essentials_version_3.0_-_Module_7.pptx
Networking_Essentials_version_3.0_-_Module_7.pptxNetworking_Essentials_version_3.0_-_Module_7.pptx
Networking_Essentials_version_3.0_-_Module_7.pptx
elestirmen
 
How to Make Money as a Cam Model – Tips, Tools & Real Talk
How to Make Money as a Cam Model – Tips, Tools & Real TalkHow to Make Money as a Cam Model – Tips, Tools & Real Talk
How to Make Money as a Cam Model – Tips, Tools & Real Talk
Cam Sites Expert
 
OSI_Security_Architecture Computer Science.pptx
OSI_Security_Architecture Computer Science.pptxOSI_Security_Architecture Computer Science.pptx
OSI_Security_Architecture Computer Science.pptx
faizanaseem873
 
AI REPLACING HUMANS /FATHER OF AI/BIRTH OF AI
AI REPLACING HUMANS /FATHER OF AI/BIRTH OF AIAI REPLACING HUMANS /FATHER OF AI/BIRTH OF AI
AI REPLACING HUMANS /FATHER OF AI/BIRTH OF AI
skdav34
 
5 Reasons cheap WordPress hosting is costing you more | Reversed Out
5 Reasons cheap WordPress hosting is costing you more | Reversed Out5 Reasons cheap WordPress hosting is costing you more | Reversed Out
5 Reasons cheap WordPress hosting is costing you more | Reversed Out
Reversed Out Creative
 
basic to advance network security concepts
basic to advance network security conceptsbasic to advance network security concepts
basic to advance network security concepts
amansinght675
 
ARTIFICIAL INTELLIGENCE.pptx2565567765676
ARTIFICIAL INTELLIGENCE.pptx2565567765676ARTIFICIAL INTELLIGENCE.pptx2565567765676
ARTIFICIAL INTELLIGENCE.pptx2565567765676
areebaimtiazpmas
 
Frontier Unlimited Internet Setup Step-by-Step Guide.pdf
Frontier Unlimited Internet Setup Step-by-Step Guide.pdfFrontier Unlimited Internet Setup Step-by-Step Guide.pdf
Frontier Unlimited Internet Setup Step-by-Step Guide.pdf
Internet Bundle Now
 
all Practical Project LAST summary note.docx
all Practical Project LAST summary note.docxall Practical Project LAST summary note.docx
all Practical Project LAST summary note.docx
seidjemal94
 
原版西班牙马拉加大学毕业证(UMA毕业证书)如何办理
原版西班牙马拉加大学毕业证(UMA毕业证书)如何办理原版西班牙马拉加大学毕业证(UMA毕业证书)如何办理
原版西班牙马拉加大学毕业证(UMA毕业证书)如何办理
Taqyea
 
Presentation About The Buttons | Selma SALTIK
Presentation About The Buttons | Selma SALTIKPresentation About The Buttons | Selma SALTIK
Presentation About The Buttons | Selma SALTIK
SELMA SALTIK
 
HPC_Course_Presentation_No_Images included.pptx
HPC_Course_Presentation_No_Images included.pptxHPC_Course_Presentation_No_Images included.pptx
HPC_Course_Presentation_No_Images included.pptx
naziaahmadnm
 
Transport Conjjjjjjjjjjjjjjjjjjjjjjjsulting by Slidesgo.pptx
Transport Conjjjjjjjjjjjjjjjjjjjjjjjsulting by Slidesgo.pptxTransport Conjjjjjjjjjjjjjjjjjjjjjjjsulting by Slidesgo.pptx
Transport Conjjjjjjjjjjjjjjjjjjjjjjjsulting by Slidesgo.pptx
ssuser80a7e81
 
Cloud VPS Provider in India: The Best Hosting Solution for Your Business
Cloud VPS Provider in India: The Best Hosting Solution for Your BusinessCloud VPS Provider in India: The Best Hosting Solution for Your Business
Cloud VPS Provider in India: The Best Hosting Solution for Your Business
DanaJohnson510230
 
Essential Tech Stack for Effective Shopify Dropshipping Integration.pdf
Essential Tech Stack for Effective Shopify Dropshipping Integration.pdfEssential Tech Stack for Effective Shopify Dropshipping Integration.pdf
Essential Tech Stack for Effective Shopify Dropshipping Integration.pdf
CartCoders
 
10 Latest Technologies and Their Benefits to End.pptx
10 Latest Technologies and Their Benefits to End.pptx10 Latest Technologies and Their Benefits to End.pptx
10 Latest Technologies and Their Benefits to End.pptx
EphraimOOghodero
 
Networking concepts from zero to hero that covers the security aspects
Networking concepts from zero to hero that covers the security aspectsNetworking concepts from zero to hero that covers the security aspects
Networking concepts from zero to hero that covers the security aspects
amansinght675
 

13- Learn CSS Fundamentals / Specificity

  • 1. IN A ROCKET Learn front-end development at rocket speed CSS CSS FUNDAMENTALS Specificity
  • 2. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com CASCADE SPECIFICITY +
  • 3. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com Web page title index.html HTML CSS h1 { color: blue; } p { color: red; } input { color: pink; } h1 { color: green; } CASCADE I'm a header
  • 4. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com Web page title index.html HTML CSS <html> <head> <link rel="stylesheet" href="styles.css"> <style> h1 { color: blue; } </style> </head> <body> <h1 style="color: green">I'm a header</h1> </body> </html> CASCADE I'm a header h1 { color: red; }
  • 5. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com CASCADE SPECIFICITY +
  • 6. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com HTML CSS Browser SPECIFICITY <body> <header> <h1>I'm a header</h1> </header> </body> header h1 { color: green; } h1 { color: blue; } Web page title index.html I'm a header The h1 selector position is better for cascade, but header h1 prevails because is more specific. READY TO USE CODE
  • 7. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com ElementClass Pseudo-class Attribute IDInline (style attribute) selector 0 000
  • 8. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com •Soy el primer enlace de una lista. •Soy el segundo enlace de una lista. •Soy el tercer enlace de una lista. My links list index.html ul li a
  • 9. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com ElementClass Pseudo-class Attribute IDInline (style attribute) ul li a 0 000
  • 10. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com ElementClass Pseudo-class Attribute IDInline (style attribute) ul li a 0 300
  • 11. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com •Soy el primer enlace de una lista. •Soy el segundo enlace de una lista. •Soy el tercer enlace de una lista. My links list index.html ul li a .lk-list
  • 12. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com ElementClass Pseudo-class Attribute IDInline (style attribute) .lk-list 0 000
  • 13. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com ElementClass Pseudo-class Attribute IDInline (style attribute) .lk-list 1 000
  • 14. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com •Soy el primer enlace de una lista. •Soy el segundo enlace de una lista. •Soy el tercer enlace de una lista. My links list index.html ul li a .lk-list #lk-list
  • 15. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com ElementClass Pseudo-class Attribute IDInline (style attribute) #lk-list 0 000
  • 16. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com ElementClass Pseudo-class Attribute IDInline (style attribute) #lk-list 0 010
  • 17. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com CAUTION •Soy el primer enlace de una lista. •Soy el segundo enlace de una lista. •Soy el tercer enlace de una lista. My links list index.html ul li a .lk-list #lk-list { } <a style=""...
  • 18. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com ElementClass Pseudo-class Attribute IDInline (style attribute) <a style=""... 0 000
  • 19. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com ElementClass Pseudo-class Attribute IDInline (style attribute) <a style=""... 0 001
  • 20. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com LET'S PLAY!
  • 21. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com ElementClass Pseudo-class Attribute IDInline html body div div h2 0 000 ElementClass Pseudo-class Attribute IDInline .header-important 0 000
  • 22. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com ElementClass Pseudo-class Attribute IDInline html body div div h2 0 500 ElementClass Pseudo-class Attribute IDInline .header-important 1 000
  • 23. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com ElementClass Pseudo-class Attribute IDInline #info 0 000 ElementClass Pseudo-class Attribute IDInline .box .info p 0 000
  • 24. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com ElementClass Pseudo-class Attribute IDInline #info 0 010 ElementClass Pseudo-class Attribute IDInline .box .info p 2 100
  • 25. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com ElementClass Pseudo-class Attribute IDInline ul#nav li.active a 0 000 ElementClass Pseudo-class Attribute IDInline #lk-special 0 000
  • 26. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com ElementClass Pseudo-class Attribute IDInline ul#nav li.active a 1 310 ElementClass Pseudo-class Attribute IDInline #lk-special 0 010
  • 27. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com ElementClass Pseudo-class Attribute IDInline #box ul li a 0 000 ElementClass Pseudo-class Attribute IDInline li a .lk-important 0 000
  • 28. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com ElementClass Pseudo-class Attribute IDInline #box ul li a 0 310 ElementClass Pseudo-class Attribute IDInline li a .lk-important 1 200
  • 29. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com SPECIFICITY WARS
  • 30. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com TOOLS: SPECIFICITY CALCULATOR
  • 31. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com TOOLS: VISUAL STUDIO CODE Just hover your pointer over a selector
  • 32. CSS FUNDAMENTALS: Build a strong foundation by solving real cases inarocket.com CASCADE SPECIFICITY +
  • 33. Learn front-end development at rocket speed inarocket.com by miguelsanchez.com YOU CAN CONTINUE THIS COURSE FOR FREE ON + READY TO USE CODE + QUIZZES + FREE UPDATES
  • 34. We respect your time
 No more blah blah videos. Just straight to the point slides with relevant information. Ready to use code
 Real code you can just copy and paste into your real projects. Step by step guides
 Clear and concise steps to build real use solutions. No missed points. Learn front-end development at rocket speed inarocket.com
  • 35. IN A ROCKET Learn front-end development at rocket speed CSS CSS FUNDAMENTALS Specificity