SlideShare a Scribd company logo
CSS – Cascading Style Sheet
Pseudo-classes
What are Pseudo Classes
A pseudo-class is used to define a special state of an
element.
For example, it can be used to:
• Style an element when a user mouses over it
• Style visited and unvisited links differently
• Style an element when it gets focus
Syntax of Pseudo-Classes
selector:pseudo-class {
property:value;
}
Anchor Pseudo-classes
Links can be displayed in different ways:
/* unvisited link */
a:link {
color: #FF0000;
}
/* visited link */
a:visited {
color: #00FF00;
}
/* mouse over link */
a:hover {
color: #FF00FF;
}
/* selected link */
a:active {
color: #0000FF;
}
Pseudo-classes and CSS Classes
• Pseudo-classes can be combined with CSS classes:
• When you hover over the link in the example, it will
change color:
a.highlight:hover {
color: #ff0000;
}
Hover on <div>
• An example of using the :hover pseudo-class on a
<div> element:
div:hover {
background-color: #f00;
}
CSS - The :first-child Pseudo-
class
• The :first-child pseudo-class matches a specified
element that is the first child of another element.
li:first-child {
color: blue;
}
All CSS Pseudo Classes
Selector Example Description
:active a:active Selects the active link
:checked input:checked Selects every checked <input> element
:disabled input:disabled Selects every disabled <input> element
:hover a:hover Selects links on mouse over
:first-child p:first-child Selects every <p> elements that is the
first child of its parent
:focus input:focus Selects the <input> element that has
focus
:last-child p:last-child Selects every <p> elements that is the
last child of its parent
All CSS Pseudo Elements
Selector Example Description
::after p::after Insert content after every <p> element.
::before p::before Insert content before every <p> element
::first-letter p::first-letter Selects the first letter of every <p> element
::first-line p::first-line Selects the first line of every <p> element
::selection p::selection Selects the portion of an element that is
selected by a user
Css pseudo-classes
Ad

More Related Content

What's hot (20)

Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
Amit Tyagi
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
Salman Memon
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
Sanjeev Kumar
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
Eliran Eliassy
 
CSS
CSSCSS
CSS
People Strategists
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
Andres Baravalle
 
Javascript
JavascriptJavascript
Javascript
Vibhor Grover
 
HTML5: features with examples
HTML5: features with examplesHTML5: features with examples
HTML5: features with examples
Alfredo Torre
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
Dave Kelly
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java Script
Fahim Abdullah
 
HTML Frameset & Inline Frame
HTML Frameset & Inline FrameHTML Frameset & Inline Frame
HTML Frameset & Inline Frame
Nisa Soomro
 
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
 
Advanced Cascading Style Sheets
Advanced Cascading Style SheetsAdvanced Cascading Style Sheets
Advanced Cascading Style Sheets
fantasticdigitaltools
 
CSS
CSSCSS
CSS
Vladimir Zhidal
 
Css Ppt
Css PptCss Ppt
Css Ppt
Hema Prasanth
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
Ron Reiter
 
Html5 semantics
Html5 semanticsHtml5 semantics
Html5 semantics
Webtech Learning
 
Introducing CSS Grid
Introducing CSS GridIntroducing CSS Grid
Introducing CSS Grid
Jason Yingling
 
Data types in php
Data types in phpData types in php
Data types in php
ilakkiya
 
CSS framework By Palash
CSS framework By PalashCSS framework By Palash
CSS framework By Palash
PalashBajpai
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
Amit Tyagi
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
Salman Memon
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
Eliran Eliassy
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
Andres Baravalle
 
HTML5: features with examples
HTML5: features with examplesHTML5: features with examples
HTML5: features with examples
Alfredo Torre
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
Dave Kelly
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java Script
Fahim Abdullah
 
HTML Frameset & Inline Frame
HTML Frameset & Inline FrameHTML Frameset & Inline Frame
HTML Frameset & Inline Frame
Nisa Soomro
 
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
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
Ron Reiter
 
Data types in php
Data types in phpData types in php
Data types in php
ilakkiya
 
CSS framework By Palash
CSS framework By PalashCSS framework By Palash
CSS framework By Palash
PalashBajpai
 

Viewers also liked (14)

CSS Pseudo Classes
CSS Pseudo ClassesCSS Pseudo Classes
CSS Pseudo Classes
frontendne
 
Mark css syntax & selector
Mark   css syntax & selectorMark   css syntax & selector
Mark css syntax & selector
LearningTech
 
Selectores css
Selectores cssSelectores css
Selectores css
mariazeballos
 
Pseudo CSS Selectors
Pseudo CSS SelectorsPseudo CSS Selectors
Pseudo CSS Selectors
Михаил Петров
 
JDBC
JDBCJDBC
JDBC
Balwinder Kumar
 
Css selectors
Css selectorsCss selectors
Css selectors
Михаил Петров
 
Casc Style Sheets Ii
Casc Style Sheets IiCasc Style Sheets Ii
Casc Style Sheets Ii
Digital Insights - Digital Marketing Agency
 
Week 12 CSS - Review from last week
Week 12 CSS - Review from last weekWeek 12 CSS - Review from last week
Week 12 CSS - Review from last week
Katherine McCurdy-Lapierre, R.G.D.
 
JDBC – Java Database Connectivity
JDBC – Java Database ConnectivityJDBC – Java Database Connectivity
JDBC – Java Database Connectivity
Information Technology
 
JDBC Java Database Connectivity
JDBC Java Database ConnectivityJDBC Java Database Connectivity
JDBC Java Database Connectivity
Ranjan Kumar
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
Amit Tyagi
 
Agile Development | Agile Process Models
Agile Development | Agile Process ModelsAgile Development | Agile Process Models
Agile Development | Agile Process Models
Ahsan Rahim
 
Jdbc Ppt
Jdbc PptJdbc Ppt
Jdbc Ppt
Centre for Budget and Governance Accountability (CBGA)
 
Craft the Perfect Posts for the "Big 3" Social Networks
Craft the Perfect Posts for the "Big 3" Social NetworksCraft the Perfect Posts for the "Big 3" Social Networks
Craft the Perfect Posts for the "Big 3" Social Networks
HubSpot
 
Ad

Similar to Css pseudo-classes (20)

JAVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
JAVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJAVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
JAVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
KimberlyCasem1
 
Css links
Css   linksCss   links
Css links
AbhishekMondal42
 
Css
CssCss
Css
jayakarthi
 
Css
CssCss
Css
irshadahamed
 
css v1 guru
css v1 gurucss v1 guru
css v1 guru
GuruPada Das
 
Intro to CSS Selectors in Drupal
Intro to CSS Selectors in DrupalIntro to CSS Selectors in Drupal
Intro to CSS Selectors in Drupal
cgmonroe
 
CascadingStyleSheets in ONESHOT By DeathCodeYT .pdf
CascadingStyleSheets  in ONESHOT By DeathCodeYT .pdfCascadingStyleSheets  in ONESHOT By DeathCodeYT .pdf
CascadingStyleSheets in ONESHOT By DeathCodeYT .pdf
balbirnainnain496
 
html-css
html-csshtml-css
html-css
Dhirendra Chauhan
 
GDG CSS TECH WINTER BREAK VIEW PPT.pptxx
GDG CSS TECH WINTER BREAK VIEW PPT.pptxxGDG CSS TECH WINTER BREAK VIEW PPT.pptxx
GDG CSS TECH WINTER BREAK VIEW PPT.pptxx
lekkalathanuja12
 
GDG CSS TECH WINTER BREAK VIEW PPT.pptxx
GDG CSS TECH WINTER BREAK VIEW PPT.pptxxGDG CSS TECH WINTER BREAK VIEW PPT.pptxx
GDG CSS TECH WINTER BREAK VIEW PPT.pptxx
lekkalathanujasai05
 
Types of Selectors (HTML)
Types of Selectors (HTML)Types of Selectors (HTML)
Types of Selectors (HTML)
Deanne Alcalde
 
v5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptxv5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
v5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptxv5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
cdocumentsandsettingsstudentdesktopnewfolderhtmlcss-100220030010-phpapp01.pdf
cdocumentsandsettingsstudentdesktopnewfolderhtmlcss-100220030010-phpapp01.pdfcdocumentsandsettingsstudentdesktopnewfolderhtmlcss-100220030010-phpapp01.pdf
cdocumentsandsettingsstudentdesktopnewfolderhtmlcss-100220030010-phpapp01.pdf
hinalsomani93
 
Introduction to basics of css, overview, syntax and so on
Introduction to basics of css, overview, syntax and so onIntroduction to basics of css, overview, syntax and so on
Introduction to basics of css, overview, syntax and so on
mictnawaraj
 
css-ppt.pdf
css-ppt.pdfcss-ppt.pdf
css-ppt.pdf
EktaDesai14
 
CSCADING style sheet. Internal external inline
CSCADING style sheet. Internal external inlineCSCADING style sheet. Internal external inline
CSCADING style sheet. Internal external inline
Ranjeet Reddy
 
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
 
Introduction to css by programmerblog.net
Introduction to css by programmerblog.netIntroduction to css by programmerblog.net
Introduction to css by programmerblog.net
Programmer Blog
 
Css
CssCss
Css
Doeun KOCH
 
JAVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
JAVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJAVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
JAVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
KimberlyCasem1
 
Intro to CSS Selectors in Drupal
Intro to CSS Selectors in DrupalIntro to CSS Selectors in Drupal
Intro to CSS Selectors in Drupal
cgmonroe
 
CascadingStyleSheets in ONESHOT By DeathCodeYT .pdf
CascadingStyleSheets  in ONESHOT By DeathCodeYT .pdfCascadingStyleSheets  in ONESHOT By DeathCodeYT .pdf
CascadingStyleSheets in ONESHOT By DeathCodeYT .pdf
balbirnainnain496
 
GDG CSS TECH WINTER BREAK VIEW PPT.pptxx
GDG CSS TECH WINTER BREAK VIEW PPT.pptxxGDG CSS TECH WINTER BREAK VIEW PPT.pptxx
GDG CSS TECH WINTER BREAK VIEW PPT.pptxx
lekkalathanuja12
 
GDG CSS TECH WINTER BREAK VIEW PPT.pptxx
GDG CSS TECH WINTER BREAK VIEW PPT.pptxxGDG CSS TECH WINTER BREAK VIEW PPT.pptxx
GDG CSS TECH WINTER BREAK VIEW PPT.pptxx
lekkalathanujasai05
 
Types of Selectors (HTML)
Types of Selectors (HTML)Types of Selectors (HTML)
Types of Selectors (HTML)
Deanne Alcalde
 
v5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptxv5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
v5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptxv5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
cdocumentsandsettingsstudentdesktopnewfolderhtmlcss-100220030010-phpapp01.pdf
cdocumentsandsettingsstudentdesktopnewfolderhtmlcss-100220030010-phpapp01.pdfcdocumentsandsettingsstudentdesktopnewfolderhtmlcss-100220030010-phpapp01.pdf
cdocumentsandsettingsstudentdesktopnewfolderhtmlcss-100220030010-phpapp01.pdf
hinalsomani93
 
Introduction to basics of css, overview, syntax and so on
Introduction to basics of css, overview, syntax and so onIntroduction to basics of css, overview, syntax and so on
Introduction to basics of css, overview, syntax and so on
mictnawaraj
 
CSCADING style sheet. Internal external inline
CSCADING style sheet. Internal external inlineCSCADING style sheet. Internal external inline
CSCADING style sheet. Internal external inline
Ranjeet Reddy
 
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
 
Introduction to css by programmerblog.net
Introduction to css by programmerblog.netIntroduction to css by programmerblog.net
Introduction to css by programmerblog.net
Programmer Blog
 
Ad

More from Webtech Learning (20)

Benefits of Digital Marketing
Benefits of Digital MarketingBenefits of Digital Marketing
Benefits of Digital Marketing
Webtech Learning
 
Digital Marketing Benefits
Digital Marketing  BenefitsDigital Marketing  Benefits
Digital Marketing Benefits
Webtech Learning
 
Future Scope of Digital Marketing in India
Future Scope of Digital Marketing in IndiaFuture Scope of Digital Marketing in India
Future Scope of Digital Marketing in India
Webtech Learning
 
Css types internal, external and inline (1)
Css types internal, external and inline (1)Css types internal, external and inline (1)
Css types internal, external and inline (1)
Webtech Learning
 
Bootstrap webtech presentation - new
Bootstrap   webtech presentation - newBootstrap   webtech presentation - new
Bootstrap webtech presentation - new
Webtech Learning
 
Css presentation
Css presentationCss presentation
Css presentation
Webtech Learning
 
Client side &amp; Server side Scripting
Client side &amp; Server side Scripting Client side &amp; Server side Scripting
Client side &amp; Server side Scripting
Webtech Learning
 
Software testing & Quality Assurance
Software testing & Quality Assurance Software testing & Quality Assurance
Software testing & Quality Assurance
Webtech Learning
 
Shadows Effects in CSS
Shadows Effects in CSSShadows Effects in CSS
Shadows Effects in CSS
Webtech Learning
 
Bs Typography
Bs TypographyBs Typography
Bs Typography
Webtech Learning
 
Bootstrap grids
Bootstrap gridsBootstrap grids
Bootstrap grids
Webtech Learning
 
Html formatting
Html formattingHtml formatting
Html formatting
Webtech Learning
 
Css box-sizing
Css box-sizingCss box-sizing
Css box-sizing
Webtech Learning
 
Css position
Css positionCss position
Css position
Webtech Learning
 
Css margins
Css marginsCss margins
Css margins
Webtech Learning
 
Css box-model
Css box-modelCss box-model
Css box-model
Webtech Learning
 
Css Display Property
Css Display PropertyCss Display Property
Css Display Property
Webtech Learning
 
Html media
Html mediaHtml media
Html media
Webtech Learning
 
Css floats
Css floatsCss floats
Css floats
Webtech Learning
 
Wordpress installation
Wordpress installationWordpress installation
Wordpress installation
Webtech Learning
 

Recently uploaded (20)

EY – The Future of Assurance | How Technology is Transforming the Audit
EY – The Future of Assurance | How Technology is Transforming the AuditEY – The Future of Assurance | How Technology is Transforming the Audit
EY – The Future of Assurance | How Technology is Transforming the Audit
INKPPT
 
McKinsey’s Fashion on Climate Report: A Roadmap to Cut Emissions by 50% by 2030
McKinsey’s Fashion on Climate Report: A Roadmap to Cut Emissions by 50% by 2030McKinsey’s Fashion on Climate Report: A Roadmap to Cut Emissions by 50% by 2030
McKinsey’s Fashion on Climate Report: A Roadmap to Cut Emissions by 50% by 2030
INKPPT
 
APLASTIC ANEMIA presention BY NIAZY.pptx
APLASTIC ANEMIA  presention BY NIAZY.pptxAPLASTIC ANEMIA  presention BY NIAZY.pptx
APLASTIC ANEMIA presention BY NIAZY.pptx
azizurhman200
 
Tempalte Corporate BUsines Promotion news
Tempalte Corporate BUsines Promotion newsTempalte Corporate BUsines Promotion news
Tempalte Corporate BUsines Promotion news
AditiaAfifArfiansyah
 
EHR Usability: Current Challenges and Impacts on Physicians and Patients
EHR Usability: Current Challenges and Impacts on Physicians and PatientsEHR Usability: Current Challenges and Impacts on Physicians and Patients
EHR Usability: Current Challenges and Impacts on Physicians and Patients
Dan Berlin
 
最新版加拿大莱斯桥学院毕业证(Lethbridge毕业证书)原版定制
最新版加拿大莱斯桥学院毕业证(Lethbridge毕业证书)原版定制最新版加拿大莱斯桥学院毕业证(Lethbridge毕业证书)原版定制
最新版加拿大莱斯桥学院毕业证(Lethbridge毕业证书)原版定制
Taqyea
 
101 Marketing for Design Entrepreneurs.pptx
101 Marketing for Design Entrepreneurs.pptx101 Marketing for Design Entrepreneurs.pptx
101 Marketing for Design Entrepreneurs.pptx
Prof. Hany El-Said
 
Digital Marketing Mock Project - Client Testimonial
Digital Marketing Mock Project - Client TestimonialDigital Marketing Mock Project - Client Testimonial
Digital Marketing Mock Project - Client Testimonial
Adeline Yeo
 
A Sneak Peek into Communication Design by Ayon
A Sneak Peek into Communication Design by AyonA Sneak Peek into Communication Design by Ayon
A Sneak Peek into Communication Design by Ayon
aonbanerjee
 
uTorrent Pro Crack Download for PC [Latest] 2025 Version
uTorrent Pro Crack Download for PC [Latest] 2025 VersionuTorrent Pro Crack Download for PC [Latest] 2025 Version
uTorrent Pro Crack Download for PC [Latest] 2025 Version
Web Designer
 
The Role of Structure and Materials in Design.pptx
The Role of Structure and Materials in Design.pptxThe Role of Structure and Materials in Design.pptx
The Role of Structure and Materials in Design.pptx
Prof. Hany El-Said
 
Burn and cold injury presentation-1.pptx
Burn and cold injury presentation-1.pptxBurn and cold injury presentation-1.pptx
Burn and cold injury presentation-1.pptx
azizurhman200
 
Carte d'indentité1 a model for a nes country
Carte d'indentité1 a model for a nes countryCarte d'indentité1 a model for a nes country
Carte d'indentité1 a model for a nes country
stephaniethomas940921
 
BCG’s Evolution of Travel: Rethinking Business Travel in a Post-Pandemic World
BCG’s Evolution of Travel: Rethinking Business Travel in a Post-Pandemic WorldBCG’s Evolution of Travel: Rethinking Business Travel in a Post-Pandemic World
BCG’s Evolution of Travel: Rethinking Business Travel in a Post-Pandemic World
INKPPT
 
Traceability and Uncertainty of measurement
Traceability and Uncertainty of measurementTraceability and Uncertainty of measurement
Traceability and Uncertainty of measurement
artiaghera85
 
Morgenbooster - Systems and Transition. 14.05.2025.pdf
Morgenbooster - Systems and Transition. 14.05.2025.pdfMorgenbooster - Systems and Transition. 14.05.2025.pdf
Morgenbooster - Systems and Transition. 14.05.2025.pdf
1508 A/S
 
The Butterfly Effect in Design Entrepreneurship.pptx
The Butterfly Effect in Design Entrepreneurship.pptxThe Butterfly Effect in Design Entrepreneurship.pptx
The Butterfly Effect in Design Entrepreneurship.pptx
Prof. Hany El-Said
 
A Creative Portfolio Presentation by Ayon
A Creative Portfolio Presentation by AyonA Creative Portfolio Presentation by Ayon
A Creative Portfolio Presentation by Ayon
aonbanerjee
 
Unit 5 visual merchandiseing trend analysis. pdf
Unit 5 visual merchandiseing  trend analysis. pdfUnit 5 visual merchandiseing  trend analysis. pdf
Unit 5 visual merchandiseing trend analysis. pdf
NaziaFarheen13
 
"Dino World: The Ultimate Dinosaur Coloring Book for Kids"
"Dino World: The Ultimate Dinosaur Coloring Book for Kids""Dino World: The Ultimate Dinosaur Coloring Book for Kids"
"Dino World: The Ultimate Dinosaur Coloring Book for Kids"
Ijaz Ahmad
 
EY – The Future of Assurance | How Technology is Transforming the Audit
EY – The Future of Assurance | How Technology is Transforming the AuditEY – The Future of Assurance | How Technology is Transforming the Audit
EY – The Future of Assurance | How Technology is Transforming the Audit
INKPPT
 
McKinsey’s Fashion on Climate Report: A Roadmap to Cut Emissions by 50% by 2030
McKinsey’s Fashion on Climate Report: A Roadmap to Cut Emissions by 50% by 2030McKinsey’s Fashion on Climate Report: A Roadmap to Cut Emissions by 50% by 2030
McKinsey’s Fashion on Climate Report: A Roadmap to Cut Emissions by 50% by 2030
INKPPT
 
APLASTIC ANEMIA presention BY NIAZY.pptx
APLASTIC ANEMIA  presention BY NIAZY.pptxAPLASTIC ANEMIA  presention BY NIAZY.pptx
APLASTIC ANEMIA presention BY NIAZY.pptx
azizurhman200
 
Tempalte Corporate BUsines Promotion news
Tempalte Corporate BUsines Promotion newsTempalte Corporate BUsines Promotion news
Tempalte Corporate BUsines Promotion news
AditiaAfifArfiansyah
 
EHR Usability: Current Challenges and Impacts on Physicians and Patients
EHR Usability: Current Challenges and Impacts on Physicians and PatientsEHR Usability: Current Challenges and Impacts on Physicians and Patients
EHR Usability: Current Challenges and Impacts on Physicians and Patients
Dan Berlin
 
最新版加拿大莱斯桥学院毕业证(Lethbridge毕业证书)原版定制
最新版加拿大莱斯桥学院毕业证(Lethbridge毕业证书)原版定制最新版加拿大莱斯桥学院毕业证(Lethbridge毕业证书)原版定制
最新版加拿大莱斯桥学院毕业证(Lethbridge毕业证书)原版定制
Taqyea
 
101 Marketing for Design Entrepreneurs.pptx
101 Marketing for Design Entrepreneurs.pptx101 Marketing for Design Entrepreneurs.pptx
101 Marketing for Design Entrepreneurs.pptx
Prof. Hany El-Said
 
Digital Marketing Mock Project - Client Testimonial
Digital Marketing Mock Project - Client TestimonialDigital Marketing Mock Project - Client Testimonial
Digital Marketing Mock Project - Client Testimonial
Adeline Yeo
 
A Sneak Peek into Communication Design by Ayon
A Sneak Peek into Communication Design by AyonA Sneak Peek into Communication Design by Ayon
A Sneak Peek into Communication Design by Ayon
aonbanerjee
 
uTorrent Pro Crack Download for PC [Latest] 2025 Version
uTorrent Pro Crack Download for PC [Latest] 2025 VersionuTorrent Pro Crack Download for PC [Latest] 2025 Version
uTorrent Pro Crack Download for PC [Latest] 2025 Version
Web Designer
 
The Role of Structure and Materials in Design.pptx
The Role of Structure and Materials in Design.pptxThe Role of Structure and Materials in Design.pptx
The Role of Structure and Materials in Design.pptx
Prof. Hany El-Said
 
Burn and cold injury presentation-1.pptx
Burn and cold injury presentation-1.pptxBurn and cold injury presentation-1.pptx
Burn and cold injury presentation-1.pptx
azizurhman200
 
Carte d'indentité1 a model for a nes country
Carte d'indentité1 a model for a nes countryCarte d'indentité1 a model for a nes country
Carte d'indentité1 a model for a nes country
stephaniethomas940921
 
BCG’s Evolution of Travel: Rethinking Business Travel in a Post-Pandemic World
BCG’s Evolution of Travel: Rethinking Business Travel in a Post-Pandemic WorldBCG’s Evolution of Travel: Rethinking Business Travel in a Post-Pandemic World
BCG’s Evolution of Travel: Rethinking Business Travel in a Post-Pandemic World
INKPPT
 
Traceability and Uncertainty of measurement
Traceability and Uncertainty of measurementTraceability and Uncertainty of measurement
Traceability and Uncertainty of measurement
artiaghera85
 
Morgenbooster - Systems and Transition. 14.05.2025.pdf
Morgenbooster - Systems and Transition. 14.05.2025.pdfMorgenbooster - Systems and Transition. 14.05.2025.pdf
Morgenbooster - Systems and Transition. 14.05.2025.pdf
1508 A/S
 
The Butterfly Effect in Design Entrepreneurship.pptx
The Butterfly Effect in Design Entrepreneurship.pptxThe Butterfly Effect in Design Entrepreneurship.pptx
The Butterfly Effect in Design Entrepreneurship.pptx
Prof. Hany El-Said
 
A Creative Portfolio Presentation by Ayon
A Creative Portfolio Presentation by AyonA Creative Portfolio Presentation by Ayon
A Creative Portfolio Presentation by Ayon
aonbanerjee
 
Unit 5 visual merchandiseing trend analysis. pdf
Unit 5 visual merchandiseing  trend analysis. pdfUnit 5 visual merchandiseing  trend analysis. pdf
Unit 5 visual merchandiseing trend analysis. pdf
NaziaFarheen13
 
"Dino World: The Ultimate Dinosaur Coloring Book for Kids"
"Dino World: The Ultimate Dinosaur Coloring Book for Kids""Dino World: The Ultimate Dinosaur Coloring Book for Kids"
"Dino World: The Ultimate Dinosaur Coloring Book for Kids"
Ijaz Ahmad
 

Css pseudo-classes

  • 1. CSS – Cascading Style Sheet Pseudo-classes
  • 2. What are Pseudo Classes A pseudo-class is used to define a special state of an element. For example, it can be used to: • Style an element when a user mouses over it • Style visited and unvisited links differently • Style an element when it gets focus
  • 4. Anchor Pseudo-classes Links can be displayed in different ways: /* unvisited link */ a:link { color: #FF0000; } /* visited link */ a:visited { color: #00FF00; } /* mouse over link */ a:hover { color: #FF00FF; } /* selected link */ a:active { color: #0000FF; }
  • 5. Pseudo-classes and CSS Classes • Pseudo-classes can be combined with CSS classes: • When you hover over the link in the example, it will change color: a.highlight:hover { color: #ff0000; }
  • 6. Hover on <div> • An example of using the :hover pseudo-class on a <div> element: div:hover { background-color: #f00; }
  • 7. CSS - The :first-child Pseudo- class • The :first-child pseudo-class matches a specified element that is the first child of another element. li:first-child { color: blue; }
  • 8. All CSS Pseudo Classes Selector Example Description :active a:active Selects the active link :checked input:checked Selects every checked <input> element :disabled input:disabled Selects every disabled <input> element :hover a:hover Selects links on mouse over :first-child p:first-child Selects every <p> elements that is the first child of its parent :focus input:focus Selects the <input> element that has focus :last-child p:last-child Selects every <p> elements that is the last child of its parent
  • 9. All CSS Pseudo Elements Selector Example Description ::after p::after Insert content after every <p> element. ::before p::before Insert content before every <p> element ::first-letter p::first-letter Selects the first letter of every <p> element ::first-line p::first-line Selects the first line of every <p> element ::selection p::selection Selects the portion of an element that is selected by a user
  翻译: