Learn CSS pseudo classes in 5 minutes 👨‍👧‍👦

preview_player
Показать описание
CSS pseudo classes elements tutorial example explained

#CSS #pseudo #classes

a:link{
color:lawngreen;
}
a:visited{
color:grey;
}
a:hover{
color:tomato;
}
a:active{
color:yellow;
}
button:hover{
background-color: lightgrey;
}
button:active{
background-color: white;
}
li:nth-child(1){
background-color: yellow;
}
li:nth-child(even){
background-color: skyblue;
}
li:nth-child(odd){
background-color: powderblue;
}
li:nth-child(5n+0){
background-color: yellow;
}
Рекомендации по теме
Комментарии
Автор

/* style.css
a:link{
color:lawngreen;
}
a:visited{
color:grey;
}
a:hover{
color:tomato;
}
a:active{
color:yellow;
}
button:hover{
background-color: lightgrey;
}
button:active{
background-color: white;
}
/*
li:nth-child(1){
background-color: yellow;
}
li:nth-child(even){
background-color: skyblue;
}
li:nth-child(odd){
background-color: powderblue;
}
*/
li:nth-child(5n+0){
background-color: yellow;
}

<!DOCTYPE html>

<html>
<head>
<title>My first website</title>
<link rel="stylesheet" href="style.css">
</head>
<body>

<!--pseudo-class = a keyword added to a
selector that specifies a special
state of the selected element(s) -->

<button>click me</button>

<ul>
<li>This is element #1</li>
<li>This is element #2</li>
<li>This is element #3</li>
<li>This is element #4</li>
<li>This is element #5</li>
<li>This is element #6</li>
<li>This is element #7</li>
<li>This is element #8</li>
<li>This is element #9</li>
<li>This is element #10</li>
</ul>

</body>
</html>

BroCodez
Автор

your knowledge of different colours shows how experienced u are !

sashwatyo
Автор

bro, i'm learning web devolopement in coursera, but gotta say it, you explain things way better than all those university teachers, you go straieght to the main point, with a very basic yet good definition

winner__mentality
Автор

Yo thank you man!! These short videos are awesome

projetoventura
Автор

5min video felt like 1min. just by how good you explain it. I've come to you twice now. youve earned my sub thank you!

Rzyrito
Автор

Hello Sir,
Thank you For the tutorial Sir,
First Comment

anirudhunleashes
Автор

Hey bro, I was wondering if your ever going to make a LUA full course.

CrazyDRKiller
Автор

How do you get to the interface on the right hand side ?? Can you show me, please!

duyenluu-rhfb
Автор

Hey bro, can u make a tutorial on css grid....

madhun
Автор

a:hover and a:link both didn't work for me can your explain me why ? i am using Firefox and also used the preview extension it still doesn't work for me

NarutoUzumakiDatebayo
Автор

popsible to start your own course? i
I will definitely buy it!!

ahmedyahya
Автор

Hey can u make a tutorial on react. Js

debapriyasinha
Автор

Plz make a tutorial on "HAXE"

gujjargaming
Автор

Fun tip : You can also use li.class*10

debapriyasinha