I read that the class and id correct to write like this: color-picker selected-color , it is wrong like this color_picker selected_color .
But when writing to js, it's pretty convenient to use dash-free recordings.
color_picker.style.display = "" Recently I saw that they were still writing in this way:
class="colorPicker" id="selectedColor" How much is it right? And in general, what should I use?
Very grateful for understandable answers, especially with explanations.