can i use same class twice ,thrice in a same (one) page in html. It works or not. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

can i use same class twice ,thrice in a same (one) page in html. It works or not.

12th Jun 2019, 8:58 AM
Rahul kushwaha
Rahul kushwaha - avatar
2 Answers
+ 3
If you want the same element several times in your code, with the same specifications, then you can use the same class over and over 😁
12th Jun 2019, 10:04 AM
River
River - avatar
+ 2
Yes of course, as many times as you wish.
12th Jun 2019, 8:59 AM
Giorgos Mariettakis
Giorgos Mariettakis - avatar