SlideShare a Scribd company logo
1 of 35
Download to read offline
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

Styling with CSS
Styling with CSSStyling with CSS
Styling with CSSMike Crabb
 
Flexible site structure with cake php
Flexible site structure with cake phpFlexible site structure with cake php
Flexible site structure with cake phpandygale
 
HTML Bootstrap Workshop
HTML Bootstrap WorkshopHTML Bootstrap Workshop
HTML Bootstrap Workshopvincentleeuwen
 
Layout with CSS
Layout with CSSLayout with CSS
Layout with CSSMike Crabb
 
Web Design Bootcamp - Day1
Web Design Bootcamp - Day1Web Design Bootcamp - Day1
Web Design Bootcamp - Day1Aslam Najeebdeen
 
Intro to WordPress theme development
Intro to WordPress theme developmentIntro to WordPress theme development
Intro to WordPress theme developmentThad 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 BootstrapJosh Jeffryes
 
WordPress theme frameworks
WordPress theme frameworksWordPress theme frameworks
WordPress theme frameworksEddie Johnston
 
Even faster web sites presentation 3
Even faster web sites presentation 3Even faster web sites presentation 3
Even faster web sites presentation 3Felipe Lavín
 
An Intro to HTML & CSS
An Intro to HTML & CSSAn Intro to HTML & CSS
An Intro to HTML & CSSShay Howe
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSSMario Hernandez
 
Modular HTML & CSS Turbo Workshop
Modular HTML & CSS Turbo WorkshopModular HTML & CSS Turbo Workshop
Modular HTML & CSS Turbo WorkshopShay Howe
 
Modular HTML & CSS Workshop
Modular HTML & CSS WorkshopModular HTML & CSS Workshop
Modular HTML & CSS WorkshopShay Howe
 
Even faster web sites
Even faster web sitesEven faster web sites
Even faster web sitesFelipe Lavín
 
Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3Todd Zaki Warfel
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSSdanpaquette
 

What's hot (20)

Styling with CSS
Styling with CSSStyling with CSS
Styling with CSS
 
Flexible site structure with cake php
Flexible site structure with cake phpFlexible site structure with cake php
Flexible site structure with cake php
 
HTML Bootstrap Workshop
HTML Bootstrap WorkshopHTML Bootstrap Workshop
HTML Bootstrap Workshop
 
Layout with CSS
Layout with CSSLayout with CSS
Layout with CSS
 
Web Design Bootcamp - Day1
Web Design Bootcamp - Day1Web Design Bootcamp - Day1
Web Design Bootcamp - Day1
 
Intro to WordPress theme development
Intro to WordPress theme developmentIntro to WordPress theme development
Intro to WordPress theme development
 
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
 
WordPress theme frameworks
WordPress theme frameworksWordPress theme frameworks
WordPress theme frameworks
 
Even faster web sites presentation 3
Even faster web sites presentation 3Even faster web sites presentation 3
Even faster web sites presentation 3
 
An Intro to HTML & CSS
An Intro to HTML & CSSAn Intro to HTML & CSS
An Intro to HTML & CSS
 
Please dont touch-3.6-jsday
Please dont touch-3.6-jsdayPlease dont touch-3.6-jsday
Please dont touch-3.6-jsday
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
Modular HTML & CSS Turbo Workshop
Modular HTML & CSS Turbo WorkshopModular HTML & CSS Turbo Workshop
Modular HTML & CSS Turbo Workshop
 
Intro to CSS
Intro to CSSIntro to CSS
Intro to CSS
 
Modular HTML & CSS Workshop
Modular HTML & CSS WorkshopModular HTML & CSS Workshop
Modular HTML & CSS Workshop
 
Web 102 INtro to CSS
Web 102  INtro to CSSWeb 102  INtro to CSS
Web 102 INtro to CSS
 
Even faster web sites
Even faster web sitesEven faster web sites
Even faster web sites
 
Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
ARTDM 171, Week 5: CSS
ARTDM 171, Week 5: CSSARTDM 171, Week 5: CSS
ARTDM 171, Week 5: CSS
 

Similar to 13- Learn CSS Fundamentals / Specificity

11- Learn CSS Fundamentals / Combinators
11- Learn CSS Fundamentals / Combinators11- Learn CSS Fundamentals / Combinators
11- Learn CSS Fundamentals / CombinatorsIn a Rocket
 
8- Learn CSS Fundamentals / Attribute selectors
8- Learn CSS Fundamentals / Attribute selectors8- Learn CSS Fundamentals / Attribute selectors
8- Learn CSS Fundamentals / Attribute selectorsIn a Rocket
 
CSS in React - The Good, The Bad, and The Ugly
CSS in React - The Good, The Bad, and The UglyCSS in React - The Good, The Bad, and The Ugly
CSS in React - The Good, The Bad, and The UglyJoe Seifi
 
CSS Foundations, pt 1
CSS Foundations, pt 1CSS Foundations, pt 1
CSS Foundations, pt 1Shawn Calvert
 
Caffeinated Style Sheets
Caffeinated Style SheetsCaffeinated Style Sheets
Caffeinated Style SheetsTommy Hodgins
 
Iml140 cs sbasics_week5
Iml140 cs sbasics_week5Iml140 cs sbasics_week5
Iml140 cs sbasics_week5Evan Hughes
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucksTim Wright
 
Sass Essentials at Mobile Camp LA
Sass Essentials at Mobile Camp LASass Essentials at Mobile Camp LA
Sass Essentials at Mobile Camp LAJake Johnson
 
Css Founder.com | Cssfounder net
Css Founder.com | Cssfounder netCss Founder.com | Cssfounder net
Css Founder.com | Cssfounder netCss Founder
 
Css Founder.com| Cssfounder Net
Css Founder.com| Cssfounder NetCss Founder.com| Cssfounder Net
Css Founder.com| Cssfounder NetCss Founder
 
パフォーマンスから考えるSass/Compassの導入・運用
パフォーマンスから考えるSass/Compassの導入・運用パフォーマンスから考えるSass/Compassの導入・運用
パフォーマンスから考えるSass/Compassの導入・運用Koji Ishimoto
 
CSS Frameworks: Make the Right Choice (EOTW09)
CSS Frameworks: Make the Right Choice (EOTW09)CSS Frameworks: Make the Right Choice (EOTW09)
CSS Frameworks: Make the Right Choice (EOTW09)Kevin Yank
 
12- Learn CSS Fundamentals / Mix & group
12- Learn CSS Fundamentals / Mix & group12- Learn CSS Fundamentals / Mix & group
12- Learn CSS Fundamentals / Mix & groupIn a Rocket
 
Css Founder.com | Cssfounder org
Css Founder.com | Cssfounder orgCss Founder.com | Cssfounder org
Css Founder.com | Cssfounder orgCss Founder
 
Advanced CSS Troubleshooting & Efficiency
Advanced CSS Troubleshooting & EfficiencyAdvanced CSS Troubleshooting & Efficiency
Advanced CSS Troubleshooting & EfficiencyDenise Jacobs
 
An introduction to jQuery
An introduction to jQueryAn introduction to jQuery
An introduction to jQueryJames Wragg
 
The Creative New World of CSS
The Creative New World of CSSThe Creative New World of CSS
The Creative New World of CSSRachel Andrew
 

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

11- Learn CSS Fundamentals / Combinators
11- Learn CSS Fundamentals / Combinators11- Learn CSS Fundamentals / Combinators
11- Learn CSS Fundamentals / Combinators
 
8- Learn CSS Fundamentals / Attribute selectors
8- Learn CSS Fundamentals / Attribute selectors8- Learn CSS Fundamentals / Attribute selectors
8- Learn CSS Fundamentals / Attribute selectors
 
CSS Frameworks
CSS FrameworksCSS Frameworks
CSS Frameworks
 
Creative Web 2 - CSS
Creative Web 2 - CSS Creative Web 2 - CSS
Creative Web 2 - CSS
 
CSS in React - The Good, The Bad, and The Ugly
CSS in React - The Good, The Bad, and The UglyCSS in React - The Good, The Bad, and The Ugly
CSS in React - The Good, The Bad, and The Ugly
 
CSS Foundations, pt 1
CSS Foundations, pt 1CSS Foundations, pt 1
CSS Foundations, pt 1
 
Caffeinated Style Sheets
Caffeinated Style SheetsCaffeinated Style Sheets
Caffeinated Style Sheets
 
Iml140 cs sbasics_week5
Iml140 cs sbasics_week5Iml140 cs sbasics_week5
Iml140 cs sbasics_week5
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
 
Sass Essentials at Mobile Camp LA
Sass Essentials at Mobile Camp LASass Essentials at Mobile Camp LA
Sass Essentials at Mobile Camp LA
 
Css Founder.com | Cssfounder net
Css Founder.com | Cssfounder netCss Founder.com | Cssfounder net
Css Founder.com | Cssfounder net
 
Css Founder.com| Cssfounder Net
Css Founder.com| Cssfounder NetCss Founder.com| Cssfounder Net
Css Founder.com| Cssfounder Net
 
パフォーマンスから考えるSass/Compassの導入・運用
パフォーマンスから考えるSass/Compassの導入・運用パフォーマンスから考えるSass/Compassの導入・運用
パフォーマンスから考えるSass/Compassの導入・運用
 
CSS Frameworks: Make the Right Choice (EOTW09)
CSS Frameworks: Make the Right Choice (EOTW09)CSS Frameworks: Make the Right Choice (EOTW09)
CSS Frameworks: Make the Right Choice (EOTW09)
 
12- Learn CSS Fundamentals / Mix & group
12- Learn CSS Fundamentals / Mix & group12- Learn CSS Fundamentals / Mix & group
12- Learn CSS Fundamentals / Mix & group
 
Css Founder.com | Cssfounder org
Css Founder.com | Cssfounder orgCss Founder.com | Cssfounder org
Css Founder.com | Cssfounder org
 
Advanced CSS Troubleshooting & Efficiency
Advanced CSS Troubleshooting & EfficiencyAdvanced CSS Troubleshooting & Efficiency
Advanced CSS Troubleshooting & Efficiency
 
An introduction to jQuery
An introduction to jQueryAn introduction to jQuery
An introduction to jQuery
 
The Creative New World of CSS
The Creative New World of CSSThe Creative New World of CSS
The Creative New World of CSS
 
HTML5 & CSS3 Flag
HTML5 & CSS3 FlagHTML5 & CSS3 Flag
HTML5 & CSS3 Flag
 

More from 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 & itemsIn a Rocket
 
2- Learn Flexbox & CSS Grid / Context
2- Learn Flexbox & CSS Grid / Context2- Learn Flexbox & CSS Grid / Context
2- Learn Flexbox & CSS Grid / ContextIn 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 setupIn a Rocket
 
17- Learn CSS Fundamentals / Units
17- Learn CSS Fundamentals / Units17- Learn CSS Fundamentals / Units
17- Learn CSS Fundamentals / UnitsIn a Rocket
 
16- Learn CSS Fundamentals / Background
16- Learn CSS Fundamentals / Background16- Learn CSS Fundamentals / Background
16- Learn CSS Fundamentals / BackgroundIn a Rocket
 
15- Learn CSS Fundamentals / Color
15- Learn CSS Fundamentals / Color15- Learn CSS Fundamentals / Color
15- Learn CSS Fundamentals / ColorIn a Rocket
 
2- Learn HTML Fundamentals / Text Formatting
2- Learn HTML Fundamentals / Text Formatting2- Learn HTML Fundamentals / Text Formatting
2- Learn HTML Fundamentals / Text FormattingIn 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 MinutesIn a Rocket
 
Learn SUIT: CSS Naming Convention
Learn SUIT: CSS Naming ConventionLearn SUIT: CSS Naming Convention
Learn SUIT: CSS Naming ConventionIn a Rocket
 
Learn BEM: CSS Naming Convention
Learn BEM: CSS Naming ConventionLearn BEM: CSS Naming Convention
Learn BEM: CSS Naming ConventionIn a Rocket
 

More from In a Rocket (10)

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
 
2- Learn Flexbox & CSS Grid / Context
2- Learn Flexbox & CSS Grid / Context2- Learn Flexbox & CSS Grid / Context
2- Learn Flexbox & CSS Grid / Context
 
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
 
17- Learn CSS Fundamentals / Units
17- Learn CSS Fundamentals / Units17- Learn CSS Fundamentals / Units
17- Learn CSS Fundamentals / Units
 
16- Learn CSS Fundamentals / Background
16- Learn CSS Fundamentals / Background16- Learn CSS Fundamentals / Background
16- Learn CSS Fundamentals / Background
 
15- Learn CSS Fundamentals / Color
15- Learn CSS Fundamentals / Color15- Learn CSS Fundamentals / Color
15- Learn CSS Fundamentals / Color
 
2- Learn HTML Fundamentals / Text Formatting
2- Learn HTML Fundamentals / Text Formatting2- Learn HTML Fundamentals / Text Formatting
2- Learn HTML Fundamentals / Text Formatting
 
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
 
Learn SUIT: CSS Naming Convention
Learn SUIT: CSS Naming ConventionLearn SUIT: CSS Naming Convention
Learn SUIT: CSS Naming Convention
 
Learn BEM: CSS Naming Convention
Learn BEM: CSS Naming ConventionLearn BEM: CSS Naming Convention
Learn BEM: CSS Naming Convention
 

Recently uploaded

Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa494f574xmv
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predieusebiomeyer
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxDyna Gilbert
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationLinaWolf1
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Paul Calvano
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhimiss dipika
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Sonam Pathan
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Sonam Pathan
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书zdzoqco
 
NSX-T and Service Interfaces presentation
NSX-T and Service Interfaces presentationNSX-T and Service Interfaces presentation
NSX-T and Service Interfaces presentationMarko4394
 
Q4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxQ4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxeditsforyah
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书rnrncn29
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书rnrncn29
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作ys8omjxb
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一z xss
 

Recently uploaded (17)

Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predi
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptx
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 Documentation
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24
 
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhi
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
 
NSX-T and Service Interfaces presentation
NSX-T and Service Interfaces presentationNSX-T and Service Interfaces presentation
NSX-T and Service Interfaces presentation
 
Q4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxQ4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptx
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
 
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
 

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