You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: css/Readme.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,11 +83,13 @@ ul.button-group li.button {
83
83
84
84
## A Note On Attribute Selectors
85
85
86
-
Attribute selectors are often overlooked, and when they are noticed that are often qualified alongside an element selector. For example `input[type="text"]`.
86
+
A common use case is to target input types. For example `input[type="text"]`.
87
87
88
-
It's important to realize that the element selector is not necessary and actually increases the specificity!
88
+
It's important to realize that the element selector is not necessary here. If you think about it, we are actually increasing the specificity needlessly.
89
89
90
-
So for that reason, attribute selectors should be used alone, just like classes.
90
+
All we really need is `[type="text"]`
91
+
92
+
So for that reason, *attribute selectors should be used alone*, just like classes.
0 commit comments