Skip to content

Commit c9fed9f

Browse files
Typo fix (mdn#40610)
Update index.md Small typo.
1 parent 2c96a56 commit c9fed9f

File tree

1 file changed

+1
-1
lines changed
  • files/en-us/learn_web_development/core/styling_basics/handling_conflicts

1 file changed

+1
-1
lines changed

files/en-us/learn_web_development/core/styling_basics/handling_conflicts/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ h1 {
7373

7474
[Specificity](/en-US/docs/Web/CSS/CSS_cascade/Specificity) is an algorithm that the browser uses to decide which property value is applied to an element. If multiple rules have different selectors that set different values for the same property and target the same element, specificity decides the property value that gets applied to the element. Specificity is basically a measure of how specific a selector's selection will be:
7575

76-
- An type (element) selector is less specific; it will select all elements of that type that appear on a page, so it has less weight. Pseudo-element selectors have the same specificity as regular element selectors.
76+
- A type (element) selector is less specific; it will select all elements of that type that appear on a page, so it has less weight. Pseudo-element selectors have the same specificity as regular element selectors.
7777
- A class selector is more specific; it will select only the elements on a page that have a specific `class` attribute value, so it has more weight. Attribute selectors and pseudo-classes have the same weight as a class.
7878
- An ID selector is even more specific — it only selects a single element with a specific `id` value. It therefore has even more weight.
7979

0 commit comments

Comments
 (0)