How to get two class for one tag in HTML? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

How to get two class for one tag in HTML?

8th Sep 2019, 10:58 PM
AJAY LINGAYAT
AJAY LINGAYAT - avatar
3 Answers
+ 5
so simple for example <tag class=" classname1 classname2"> just separate the two classes names with space
8th Sep 2019, 11:06 PM
Haider Bahaa
Haider Bahaa - avatar
+ 2
Thanks Haider
8th Sep 2019, 11:14 PM
AJAY LINGAYAT
AJAY LINGAYAT - avatar
+ 1
welcome
8th Sep 2019, 11:15 PM
Haider Bahaa
Haider Bahaa - avatar