Can be put same class into different types of html tags ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Can be put same class into different types of html tags ?

13th May 2019, 9:48 AM
Vansh Gupta
Vansh Gupta - avatar
2 Answers
+ 2
This is not my answer Andry Hry.
13th May 2019, 10:37 AM
Vansh Gupta
Vansh Gupta - avatar
+ 1
Sure, you can do that. For example you can make a css class for a button. then all of your buttons can use the same css class.
13th May 2019, 9:56 AM
Andri Hry
Andri Hry - avatar