Would it go wrong of I didn't use hash ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Would it go wrong of I didn't use hash ??

css

3rd Sep 2017, 6:40 PM
Marwa Ali
Marwa Ali - avatar
4 Answers
+ 4
Dunno Maybe Rule will be unselect your element?
3rd Sep 2017, 6:41 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 3
@Sami Khan: Not only for normal/simple CSS, because without hashtag (#) or dot (.) prefixed to the name identifier, it will be interpreted as a tag name rather than an id or class name identifier ^^
4th Sep 2017, 7:30 AM
visph
visph - avatar
+ 2
"#" for id and "." for classes.. yes it is necessary in css.. i don't know about other preprocessors but for the simple CSS it is mandatory
3rd Sep 2017, 6:49 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
thanx @visph ;)
4th Sep 2017, 9:01 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar