+ 1
When do you use "id" and "class"? In other words, which tags should I include the above?
4 Answers
+ 3
IdĀ can be used to identify one element, whereas aĀ class can be used to identify more than one.
+ 3
Id represents as #idname
Class represents as . classname
+ 2
ćļ¼Øļ¼”ļ¼°ļ¼°ļ¼¹ ļ¼“ļ¼Æ ļ¼Øļ¼„ļ¼¬ļ¼°ć I'd like to add onto your answer by saying that IDs have a higher precedence than classes.
+ 1
any body online, please?