Skip to content

Commit

Permalink
Create Add Some more Selectors Tag in CSS
Browse files Browse the repository at this point in the history
Add More important Selectors tags that really used.
  • Loading branch information
Fuzaildev authored Oct 22, 2023
1 parent 3f64b71 commit 9fdbd42
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Add Some more Selectors Tag in CSS
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Essential Selectors Tag

/* Child Selector (using > ) */
div>p {
background-color: green;
}

/* Descendant Selector */

.div p {
background-color: maroon;
}

/* Universal Selector (ALL Elements margin and padding are 0; ) */

* {
margin: 0;
padding: 0;
}

/* Pseudo Selector */

/* If you visited the website then you can change the color */
a:visited {
color: red;
}

/* If you want to change link color before visit */
a:link {
color: blueviolet;
}

0 comments on commit 9fdbd42

Please sign in to comment.