In this blog, I am creating the transitions and transforms in image tags using HTML & CSS. So, Let’s create an index.html & style.css below-
Tag: active
How to Use Pseudo-classes in CSS?
A pseudo-class is used to define a special state of an element.
Syntax:-
selector:pseudo-class { property:value; }
Ex: –
div:hover { background-color: red;}
Pseudo-classes–
- :link
- :visited
- :hover
- :active
- :focus
- :checked
- :first-child
- :first-of-type
- :nth-child(n)
How to use Link Property in CSS?
When you use the “<a>” tag on your HTML page then show text color automatic blue & underline. If you want to implement in your tag using CSS then implement the below property-
Ex:-
a:link {
color: red;
}