Quick coding question?

Quick coding question?
0

#1

I am having a little trouble fully understanding the class attribute. When you are naming a class, can you name it whatever you want, or is there a list of different class names that you can use?


#2

I suppose you talk about HTML/CSS.

Yes, you can name the classes and ids how you like, but it’s better to give them meaningful names.


#3

Hey! Yeah you just must begin name with underscore, hyphen or a-z (_, -, a-z) followed by numbers, letters hyphen. You are naming elements to easly find them in css to add style to them (width, height, color etc.)