0

Why can't ccs just use one symbol in front of something?

Why does ccs use # and . In front of words? Couldn't they just use one?

21st Nov 2018, 4:05 PM
K I
3 Answers
+ 3
If you have trouble in understanding CSS selectors i suggest go through MDN reference https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Simple_selectors or you want more about selectors learn here https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Selectors
21st Nov 2018, 4:57 PM
UwU Discover Me
+ 2
# is prefix followed by value id attribute which is unique name or id and can be used once in html, .(period) Is prefix followed value of class attribute which is used multiple times in HTML.
21st Nov 2018, 4:13 PM
UwU Discover Me
0
No because you need to be able to select by class and Id so you need two ways to do it.
21st Nov 2018, 4:09 PM
Mike