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?
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
+ 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.
0
No because you need to be able to select by class and Id so you need two ways to do it.